diff options
Diffstat (limited to 'net/mac80211/scan.c')
-rw-r--r-- | net/mac80211/scan.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index d59fc6818b1c..06cbe26892a8 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c | |||
@@ -65,12 +65,11 @@ static bool is_uapsd_supported(struct ieee802_11_elems *elems) | |||
65 | struct ieee80211_bss * | 65 | struct ieee80211_bss * |
66 | ieee80211_bss_info_update(struct ieee80211_local *local, | 66 | ieee80211_bss_info_update(struct ieee80211_local *local, |
67 | struct ieee80211_rx_status *rx_status, | 67 | struct ieee80211_rx_status *rx_status, |
68 | struct ieee80211_mgmt *mgmt, | 68 | struct ieee80211_mgmt *mgmt, size_t len, |
69 | size_t len, | ||
70 | struct ieee802_11_elems *elems, | 69 | struct ieee802_11_elems *elems, |
71 | struct ieee80211_channel *channel, | 70 | struct ieee80211_channel *channel) |
72 | bool beacon) | ||
73 | { | 71 | { |
72 | bool beacon = ieee80211_is_beacon(mgmt->frame_control); | ||
74 | struct cfg80211_bss *cbss; | 73 | struct cfg80211_bss *cbss; |
75 | struct ieee80211_bss *bss; | 74 | struct ieee80211_bss *bss; |
76 | int clen, srlen; | 75 | int clen, srlen; |
@@ -203,7 +202,7 @@ void ieee80211_scan_rx(struct ieee80211_local *local, struct sk_buff *skb) | |||
203 | 202 | ||
204 | bss = ieee80211_bss_info_update(local, rx_status, | 203 | bss = ieee80211_bss_info_update(local, rx_status, |
205 | mgmt, skb->len, &elems, | 204 | mgmt, skb->len, &elems, |
206 | channel, beacon); | 205 | channel); |
207 | if (bss) | 206 | if (bss) |
208 | ieee80211_rx_bss_put(local, bss); | 207 | ieee80211_rx_bss_put(local, bss); |
209 | } | 208 | } |