aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00link.c
diff options
context:
space:
mode:
authorHelmut Schaa <helmut.schaa@googlemail.com>2010-10-09 07:33:16 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-10-11 15:04:21 -0400
commita23c22080345f1748a933f32736986ff11f44d60 (patch)
tree30cde2d32adaa6b5572384a0b9ecedf89130bdf8 /drivers/net/wireless/rt2x00/rt2x00link.c
parentcfdfa4d3a0c7aa1287c61326a7714f262466157a (diff)
rt2x00: Shortcut link state updates when not operating as STA
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00link.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00link.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00link.c b/drivers/net/wireless/rt2x00/rt2x00link.c
index 4d534e9dc628..46836f801b35 100644
--- a/drivers/net/wireless/rt2x00/rt2x00link.c
+++ b/drivers/net/wireless/rt2x00/rt2x00link.c
@@ -236,6 +236,12 @@ void rt2x00link_update_stats(struct rt2x00_dev *rt2x00dev,
236 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; 236 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
237 237
238 /* 238 /*
239 * No need to update the stats for !=STA interfaces
240 */
241 if (!rt2x00dev->intf_sta_count)
242 return;
243
244 /*
239 * Frame was received successfully since non-succesfull 245 * Frame was received successfully since non-succesfull
240 * frames would have been dropped by the hardware. 246 * frames would have been dropped by the hardware.
241 */ 247 */