summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/ath/ath.h
diff options
context:
space:
mode:
authorMichael Brown2016-01-28 15:15:36 +0100
committerMichael Brown2016-01-28 15:24:24 +0100
commitd0bfd830e4e5ddd1015dda66833a99b068b6a519 (patch)
treed764e2cbe795b67bc5b99e12b2c4230df1dd7822 /src/drivers/net/ath/ath.h
parent[slam] Avoid potential division by zero (diff)
downloadipxe-d0bfd830e4e5ddd1015dda66833a99b068b6a519.tar.gz
ipxe-d0bfd830e4e5ddd1015dda66833a99b068b6a519.tar.xz
ipxe-d0bfd830e4e5ddd1015dda66833a99b068b6a519.zip
[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>
Diffstat (limited to 'src/drivers/net/ath/ath.h')
-rw-r--r--src/drivers/net/ath/ath.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/drivers/net/ath/ath.h b/src/drivers/net/ath/ath.h
index 42ad59f7..65b97f6a 100644
--- a/src/drivers/net/ath/ath.h
+++ b/src/drivers/net/ath/ath.h
@@ -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);