]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: don't drop frames where skb->len < 24 in ieee80211_scan_rx()
authorLuciano Coelho <coelho@ti.com>
Mon, 9 May 2011 16:15:04 +0000 (19:15 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 May 2011 19:54:54 +0000 (15:54 -0400)
commitdba6ebbb238ae05d45c026005a530630bde83c83
tree3bbc63e2923d5cf71767a43eadcda2d47b334e61
parent3ddafb828d99013636877bc0601a95ca4e39e38b
mac80211: don't drop frames where skb->len < 24 in ieee80211_scan_rx()

This seems to be a leftover from the old days, when we didn't support
any frames that didn't contain the full ieee802.11 header.  This is
not the case anymore.  It does not cause problems now, because they
are only dropped during scan.  But when scheduled scans get merged,
this would become a problem because we would drop all small frames
while scheduled scan is running.

To fix this, return RX_CONTINUE instead of RX_DROP_MONITOR.

Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/scan.c