zd1211rw-d80211: Use ieee80211_tx_status
Subsystems (3)
PATCH 1/1 zd1211rw-d80211: Use ieee80211_tx_status
zd1211rw-d80211: Use ieee80211_tx_status
This makes zd1211rw-d80211 properly report the TX result of a frame via ieee80211_tx_status. I'm not sure if we can do much better than this since the hardware doesn't explicitly report the success/failure of TXed frames that require ACKs. We have to guess which ACKs match up with which frames we're trying to send.
Signed-off-by Michael Wu <[email protected]>
---
drivers/net/wireless/d80211/zd1211rw/zd_chip.h | 3 + drivers/net/wireless/d80211/zd1211rw/zd_mac.c | 96 ++++++++++++++++++++++++ drivers/net/wireless/d80211/zd1211rw/zd_mac.h | 2 + drivers/net/wireless/d80211/zd1211rw/zd_usb.c | 8 -- 4 files changed, 99 insertions(+), 10 deletions(-)
drivers/net/wireless/d80211/zd1211rw/zd_chip.h +2 -1
@@ -467,8 +467,9 @@#define RX_FILTER_BEACON (1 << 8)#define RX_FILTER_DISASSOC (1 << 10)#define RX_FILTER_AUTH (1 << 11) +#define RX_FILTER_ACK (1 << 29)#define AP_RX_FILTER 0x0400feff -#define STA_RX_FILTER 0x0000ffff +#define STA_RX_FILTER 0x2000ffff/* Monitor mode sets filter to 0xfffff */
drivers/net/wireless/d80211/zd1211rw/zd_mac.c +94 -2
141 lines not on this page · raw message
drivers/net/wireless/d80211/zd1211rw/zd_mac.h +2 -0
@@ -135,6 +135,7 @@ struct zd_mac {int mode;int associated;u8 *hwaddr; +struct sk_buff_head tx_queue;struct ieee80211_channel channels[14 ];struct ieee80211_rate rates[12 ];struct ieee80211_hw_modes modes[2 ];
@@ -163,6 +164,7 @@ void zd_mac_clear(struct zd_mac *mac);int zd_mac_init_hw (struct ieee80211_hw *dev,u8 device_type);int zd_mac_rx (struct ieee80211_hw *dev,const u8 *buffer,unsigned int length); +void zd_mac_tx_failed (struct ieee80211_hw *dev);#ifdef DEBUG void zd_dump_rx_status (const struct rx_status *status);
drivers/net/wireless/d80211/zd1211rw/zd_usb.c +1 -7
@@ -398,12 +398,6 @@ out:spin_unlock (&intr->lock); } -static inline void handle_retry_failed_int (struct urb *urb) -{ -dev_dbg_f (urb_dev (urb),"retry failed interrupt\n" ); -} - -static void int_urb_complete (struct urb *urb) {int r;
@@ -439,7 +433,7 @@ static void int_urb_complete(struct urbhandle_regs_int (urb);break ;case USB_INT_ID_RETRY_FAILED : -handle_retry_failed_int (urb); +zd_mac_tx_failed (zd_usb_to_dev (urb->context));break ;default : dev_dbg_f(urb_dev(urb), "error: urb %p unknown id %x\n", urb,