diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-04-03 19:05:22 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-08 16:44:42 -0400 |
commit | dc92e49729142047bce8f14762accb322962b585 (patch) | |
tree | 0e85ec00dfbd1045e8a02865a1ed3b79ab7ce84f /drivers/net/wireless/iwlwifi/iwl-4965.c | |
parent | fee1247a30e5b3d48fe985b4a935eb6818f3b464 (diff) |
iwlwifi: use ieee80211_frequency_to_channel
This patch replaces ieee80211chan2mhz from radiotap with
ieee80211_frequency_to_channel provided by mac80211
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 69e92177ad60..472ca3d7e034 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -3814,12 +3814,12 @@ static void iwl4965_rx_reply_rx(struct iwl_priv *priv, | |||
3814 | u8 network_packet; | 3814 | u8 network_packet; |
3815 | 3815 | ||
3816 | rx_status.mactime = le64_to_cpu(rx_start->timestamp); | 3816 | rx_status.mactime = le64_to_cpu(rx_start->timestamp); |
3817 | rx_status.freq = ieee80211chan2mhz(le16_to_cpu(rx_start->channel)); | 3817 | rx_status.freq = |
3818 | ieee80211_frequency_to_channel(le16_to_cpu(rx_start->channel)); | ||
3818 | rx_status.band = (rx_start->phy_flags & RX_RES_PHY_FLAGS_BAND_24_MSK) ? | 3819 | rx_status.band = (rx_start->phy_flags & RX_RES_PHY_FLAGS_BAND_24_MSK) ? |
3819 | IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ; | 3820 | IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ; |
3820 | rx_status.rate_idx = iwl4965_hwrate_to_plcp_idx( | 3821 | rx_status.rate_idx = |
3821 | le32_to_cpu(rx_start->rate_n_flags)); | 3822 | iwl4965_hwrate_to_plcp_idx(le32_to_cpu(rx_start->rate_n_flags)); |
3822 | |||
3823 | if (rx_status.band == IEEE80211_BAND_5GHZ) | 3823 | if (rx_status.band == IEEE80211_BAND_5GHZ) |
3824 | rx_status.rate_idx -= IWL_FIRST_OFDM_RATE; | 3824 | rx_status.rate_idx -= IWL_FIRST_OFDM_RATE; |
3825 | 3825 | ||
@@ -3827,9 +3827,8 @@ static void iwl4965_rx_reply_rx(struct iwl_priv *priv, | |||
3827 | rx_status.flag = 0; | 3827 | rx_status.flag = 0; |
3828 | 3828 | ||
3829 | if ((unlikely(rx_start->cfg_phy_cnt > 20))) { | 3829 | if ((unlikely(rx_start->cfg_phy_cnt > 20))) { |
3830 | IWL_DEBUG_DROP | 3830 | IWL_DEBUG_DROP("dsp size out of range [0,20]: %d/n", |
3831 | ("dsp size out of range [0,20]: " | 3831 | rx_start->cfg_phy_cnt); |
3832 | "%d/n", rx_start->cfg_phy_cnt); | ||
3833 | return; | 3832 | return; |
3834 | } | 3833 | } |
3835 | 3834 | ||