b43: fix the wrong assignment of status.freq in b43_rx()
authorZHAO Gang <gamerh2o@gmail.com>
Fri, 17 Jan 2014 16:17:38 +0000 (00:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Feb 2014 19:22:16 +0000 (11:22 -0800)
commit5425534d6b0e9036ee5a6954b1fb53cac371b16b
treef40945025f5c112e869459d1990b9e49dc422c7a
parent070b6fdbde673f5995997d7cf94786bb9ed435ef
b43: fix the wrong assignment of status.freq in b43_rx()

commit 64e5acb09ca6b50c97299cff9ef51299470b29f2 upstream.

Use the right function to update frequency value.

If rx skb is probe response or beacon, the wrong frequency value can
cause problem that bss info can't be updated when it should be.

Fixes: 8318d78a44d4 ("cfg80211 API for channels/bitrates, mac80211 and driver conversion")
Signed-off-by: ZHAO Gang <gamerh2o@gmail.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/b43/xmit.c