diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2008-05-08 05:34:05 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-13 03:22:19 +0200 |
commit | c0186078b78839a8bdb385fa07a816c2f348a49d (patch) | |
tree | 7635832760e1fb42b61100be6eb8ae35c1f7ff1a /drivers/net/wireless/iwlwifi/iwl-3945.c | |
parent | zd1211rw: fix potential use-after-free bug (diff) | |
download | linux-c0186078b78839a8bdb385fa07a816c2f348a49d.tar.xz linux-c0186078b78839a8bdb385fa07a816c2f348a49d.zip |
iwlwifi: Fix frequency in rx_status fill
This patch fixes a bug in RX path, the frequency was wrongly set in the
ieee80211_rx_status. This bug led to an empty scan list in A band.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index d3406830c8e3..62a3d8f8563e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c @@ -666,7 +666,7 @@ static void iwl3945_rx_reply_rx(struct iwl3945_priv *priv, rx_status.flag = 0; rx_status.mactime = le64_to_cpu(rx_end->timestamp); rx_status.freq = - ieee80211_frequency_to_channel(le16_to_cpu(rx_hdr->channel)); + ieee80211_channel_to_frequency(le16_to_cpu(rx_hdr->channel)); rx_status.band = (rx_hdr->phy_flags & RX_RES_PHY_FLAGS_BAND_24_MSK) ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ; |