diff options
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index a1944b8722e9..47bc3030ca87 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -1824,6 +1824,16 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata, | |||
1824 | memcmp(ifmgd->bssid, mgmt->bssid, ETH_ALEN) != 0) | 1824 | memcmp(ifmgd->bssid, mgmt->bssid, ETH_ALEN) != 0) |
1825 | return; | 1825 | return; |
1826 | 1826 | ||
1827 | if (ifmgd->flags & IEEE80211_STA_PROBEREQ_POLL) { | ||
1828 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG | ||
1829 | if (net_ratelimit()) { | ||
1830 | printk(KERN_DEBUG "%s: cancelling probereq poll due " | ||
1831 | "to a received beacon\n", sdata->dev->name); | ||
1832 | } | ||
1833 | #endif | ||
1834 | ifmgd->flags &= ~IEEE80211_STA_PROBEREQ_POLL; | ||
1835 | } | ||
1836 | |||
1827 | ncrc = crc32_be(0, (void *)&mgmt->u.beacon.beacon_int, 4); | 1837 | ncrc = crc32_be(0, (void *)&mgmt->u.beacon.beacon_int, 4); |
1828 | ncrc = ieee802_11_parse_elems_crc(mgmt->u.beacon.variable, | 1838 | ncrc = ieee802_11_parse_elems_crc(mgmt->u.beacon.variable, |
1829 | len - baselen, &elems, | 1839 | len - baselen, &elems, |