diff options
Diffstat (limited to 'net/mac80211/rx.c')
| -rw-r--r-- | net/mac80211/rx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index d9df819eef3b..9c1679d124ba 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
| @@ -418,10 +418,10 @@ ieee80211_rx_h_passive_scan(struct ieee80211_rx_data *rx) | |||
| 418 | struct ieee80211_local *local = rx->local; | 418 | struct ieee80211_local *local = rx->local; |
| 419 | struct sk_buff *skb = rx->skb; | 419 | struct sk_buff *skb = rx->skb; |
| 420 | 420 | ||
| 421 | if (unlikely(local->hw_scanning)) | 421 | if (unlikely(test_bit(SCAN_HW_SCANNING, &local->scanning))) |
| 422 | return ieee80211_scan_rx(rx->sdata, skb); | 422 | return ieee80211_scan_rx(rx->sdata, skb); |
| 423 | 423 | ||
| 424 | if (unlikely(local->sw_scanning)) { | 424 | if (unlikely(test_bit(SCAN_SW_SCANNING, &local->scanning))) { |
| 425 | /* drop all the other packets during a software scan anyway */ | 425 | /* drop all the other packets during a software scan anyway */ |
| 426 | if (ieee80211_scan_rx(rx->sdata, skb) != RX_QUEUED) | 426 | if (ieee80211_scan_rx(rx->sdata, skb) != RX_QUEUED) |
| 427 | dev_kfree_skb(skb); | 427 | dev_kfree_skb(skb); |
| @@ -2136,7 +2136,7 @@ static void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw, | |||
| 2136 | return; | 2136 | return; |
| 2137 | } | 2137 | } |
| 2138 | 2138 | ||
| 2139 | if (unlikely(local->sw_scanning || local->hw_scanning)) | 2139 | if (unlikely(local->scanning)) |
| 2140 | rx.flags |= IEEE80211_RX_IN_SCAN; | 2140 | rx.flags |= IEEE80211_RX_IN_SCAN; |
| 2141 | 2141 | ||
| 2142 | ieee80211_parse_qos(&rx); | 2142 | ieee80211_parse_qos(&rx); |
