From: Helmut Schaa Date: Sat, 9 Oct 2010 11:33:16 +0000 (+0200) Subject: rt2x00: Shortcut link state updates when not operating as STA X-Git-Tag: 2.1b_release~6495^2~78^2^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a23c22080345f1748a933f32736986ff11f44d60;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git rt2x00: Shortcut link state updates when not operating as STA Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rt2x00/rt2x00link.c b/drivers/net/wireless/rt2x00/rt2x00link.c index 4d534e9..46836f8 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, struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; /* + * No need to update the stats for !=STA interfaces + */ + if (!rt2x00dev->intf_sta_count) + return; + + /* * Frame was received successfully since non-succesfull * frames would have been dropped by the hardware. */