[ath9k] Remove broken ath_rxbuf_alloc()

ath_rx_init() demonstrates some serious confusion over how to use
pointers, resulting in (uint32_t*)NULL being used as a temporary
variable.  This does not end well.

The broken code in question is performing manual alignment of I/O
buffers, which can now be achieved more simply using alloc_iob_raw().
Fix by removing ath_rxbuf_alloc() entirely.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2016-01-28 14:24:24 +00:00
parent 4ddd3d99c3
commit d0bfd830e4
3 changed files with 5 additions and 70 deletions
-4
View File
@@ -229,10 +229,6 @@ struct ath_common {
int btcoex_enabled;
};
struct io_buffer *ath_rxbuf_alloc(struct ath_common *common,
u32 len,
u32 *iob_addr);
void ath_hw_setbssidmask(struct ath_common *common);
int ath_hw_keyreset(struct ath_common *common, u16 entry);
void ath_hw_cycle_counters_update(struct ath_common *common);