diff options
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 038460b0a48a..f3f240c69018 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -193,7 +193,19 @@ ieee80211_tx_h_check_assoc(struct ieee80211_tx_data *tx) | |||
193 | return TX_CONTINUE; | 193 | return TX_CONTINUE; |
194 | 194 | ||
195 | if (unlikely(tx->local->sw_scanning) && | 195 | if (unlikely(tx->local->sw_scanning) && |
196 | !ieee80211_is_probe_req(hdr->frame_control)) | 196 | !ieee80211_is_probe_req(hdr->frame_control) && |
197 | !ieee80211_is_nullfunc(hdr->frame_control)) | ||
198 | /* | ||
199 | * When software scanning only nullfunc frames (to notify | ||
200 | * the sleep state to the AP) and probe requests (for the | ||
201 | * active scan) are allowed, all other frames should not be | ||
202 | * sent and we should not get here, but if we do | ||
203 | * nonetheless, drop them to avoid sending them | ||
204 | * off-channel. See the link below and | ||
205 | * ieee80211_start_scan() for more. | ||
206 | * | ||
207 | * http://article.gmane.org/gmane.linux.kernel.wireless.general/30089 | ||
208 | */ | ||
197 | return TX_DROP; | 209 | return TX_DROP; |
198 | 210 | ||
199 | if (tx->sdata->vif.type == NL80211_IFTYPE_MESH_POINT) | 211 | if (tx->sdata->vif.type == NL80211_IFTYPE_MESH_POINT) |