From 7f97ca0347003c8ed50ecb2f39bab4d7df906b51 Mon Sep 17 00:00:00 2001 From: Weongyo Jeong Date: Thu, 25 Jun 2009 02:14:47 +0000 Subject: [PATCH] uses ZYD_NOTIF_RETRYSTATUS info to count the number of retries. --- sys/dev/usb/wlan/if_zyd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/usb/wlan/if_zyd.c b/sys/dev/usb/wlan/if_zyd.c index bdc9b2d0e920..0322318841bc 100644 --- a/sys/dev/usb/wlan/if_zyd.c +++ b/sys/dev/usb/wlan/if_zyd.c @@ -667,7 +667,8 @@ zyd_intr_read_callback(struct usb_xfer *xfer, usb_error_t error) ni = ieee80211_find_txnode(vap, retry->macaddr); if (ni != NULL) { ieee80211_amrr_tx_complete(&ZYD_NODE(ni)->amn, - IEEE80211_AMRR_FAILURE, 1); + IEEE80211_AMRR_FAILURE, + (int)(le16toh(retry->count) & 0xff)); ieee80211_free_node(ni); } if (le16toh(retry->count) & 0x100)