iwlwifi: Fix frequency in rx_status fill
PATCH 1/1 iwlwifi: Fix frequency in rx_status fill
From: Emmanuel Grumbach <[email protected]>
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 <[email protected]>
Signed-off-by Tomas Winkler <[email protected]>
--- drivers/net/wireless/iwlwifi/iwl-3945.c | 2 +- drivers/net/wireless/iwlwifi/iwl-4965.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/iwlwifi/iwl-3945.c +1 -1
@@ -670,7 +670,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 ;
drivers/net/wireless/iwlwifi/iwl-4965.c +1 -1
@@ -2905,7 +2905,7 @@ static void iwl4965_rx_reply_rx(struct iwl_priv *priv, rx_status.mactime =le64_to_cpu (rx_start->timestamp); rx_status.freq = -ieee80211_frequency_to_channel (le16_to_cpu (rx_start->channel)); +ieee80211_channel_to_frequency (le16_to_cpu (rx_start->channel)); rx_status.band = (rx_start->phy_flags &RX_RES_PHY_FLAGS_BAND_24_MSK ) ?IEEE80211_BAND_2GHZ :IEEE80211_BAND_5GHZ ; rx_status.rate_idx =
Signature · 1 line
1.5.3.6
Quoted 8 lines · Zhu Yi
From: Emmanuel Grumbach <[email protected]>
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 <[email protected]>Signed-off-by Tomas Winkler <[email protected]>--
-
John
This is an important bug fix also for 26
Thanks
Tomas