]> git.openfabrics.org - ~emulex/infiniband.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)
commit0af0467f09207cbbeb387d2e09ea539534c6655c
treef7dac0ea3b0fc35d75e18f7ac02d805bade63f73
parente7ddf549f3f2da156f5c12921e6699024e80a3f4
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