]> git.baikalelectronics.ru Git - kernel.git/commit
wl12xx: Fix potential incorrect band in rx-status
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>
Thu, 10 Mar 2011 08:01:43 +0000 (10:01 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 19 Apr 2011 13:49:04 +0000 (16:49 +0300)
commitb40bcfb2e1bb9c32b763d4533210635310f070d8
treef7dac0ea3b0fc35d75e18f7ac02d805bade63f73
parentd364283dc7c8821d4ec5cf712e8c885ccf83ebaf
wl12xx: Fix potential incorrect band in rx-status

The rx-status passed to mac80211 along with each received frame contains the
band on which the frame was received. Under certain circumstances, this band
information may be incorrect, causing in worst case a WARNING from mac80211,
and causes the received frame to be dropped.

This scenario mainly occurs when performing connected-mode scans, when the
received scan results are from the other band than the one currently
associated to.

[Since desc_band doesn't exist anymore, use status->band in the later
call to ieee80211_channel_to_frequency() to fix compilation -- Luca]

Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/rx.c