diff options
Diffstat (limited to 'drivers/net/wireless/zd1211rw/zd_mac.c')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_mac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c b/drivers/net/wireless/zd1211rw/zd_mac.c index 06b342b39792..a903645e157a 100644 --- a/drivers/net/wireless/zd1211rw/zd_mac.c +++ b/drivers/net/wireless/zd1211rw/zd_mac.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include "zd_ieee80211.h" | 28 | #include "zd_ieee80211.h" |
29 | #include "zd_netdev.h" | 29 | #include "zd_netdev.h" |
30 | #include "zd_rf.h" | 30 | #include "zd_rf.h" |
31 | #include "zd_util.h" | ||
32 | 31 | ||
33 | static void ieee_init(struct ieee80211_device *ieee); | 32 | static void ieee_init(struct ieee80211_device *ieee); |
34 | static void softmac_init(struct ieee80211softmac_device *sm); | 33 | static void softmac_init(struct ieee80211softmac_device *sm); |
@@ -1066,7 +1065,8 @@ static int fill_rx_stats(struct ieee80211_rx_stats *stats, | |||
1066 | { | 1065 | { |
1067 | const struct rx_status *status; | 1066 | const struct rx_status *status; |
1068 | 1067 | ||
1069 | *pstatus = status = zd_tail(buffer, length, sizeof(struct rx_status)); | 1068 | *pstatus = status = (struct rx_status *) |
1069 | (buffer + (length - sizeof(struct rx_status))); | ||
1070 | if (status->frame_status & ZD_RX_ERROR) { | 1070 | if (status->frame_status & ZD_RX_ERROR) { |
1071 | struct ieee80211_device *ieee = zd_mac_to_ieee80211(mac); | 1071 | struct ieee80211_device *ieee = zd_mac_to_ieee80211(mac); |
1072 | ieee->stats.rx_errors++; | 1072 | ieee->stats.rx_errors++; |