aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-04-01 11:51:47 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-04-08 16:43:50 -0400
commita0b484fee72fc18eb9145011a5edec922fafbc15 (patch)
treea71180b9a8104253657f28c9e43e91724c17a32e /drivers/net/wireless/iwlwifi/iwl-4965.c
parent16788599a9601cbba6ad7b58b3b52227ea59c013 (diff)
iwlwifi: fix some warnings
This fixes all kinds of warnings in iwlwifi. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> 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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 0171bb8cbbc6..73e8a24eb9ce 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -3296,6 +3296,7 @@ static void iwl4965_add_radiotap(struct iwl_priv *priv,
3296 s8 noise = 0; 3296 s8 noise = 0;
3297 int rate = stats->rate_idx; 3297 int rate = stats->rate_idx;
3298 u64 tsf = stats->mactime; 3298 u64 tsf = stats->mactime;
3299 __le16 antenna;
3299 __le16 phy_flags_hw = rx_start->phy_flags; 3300 __le16 phy_flags_hw = rx_start->phy_flags;
3300 struct iwl4965_rt_rx_hdr { 3301 struct iwl4965_rt_rx_hdr {
3301 struct ieee80211_radiotap_header rt_hdr; 3302 struct ieee80211_radiotap_header rt_hdr;
@@ -3380,8 +3381,8 @@ static void iwl4965_add_radiotap(struct iwl_priv *priv,
3380 * new 802.11n radiotap field "RX chains" that is defined 3381 * new 802.11n radiotap field "RX chains" that is defined
3381 * as a bitmask. 3382 * as a bitmask.
3382 */ 3383 */
3383 iwl4965_rt->rt_antenna = 3384 antenna = phy_flags_hw & RX_RES_PHY_FLAGS_ANTENNA_MSK;
3384 le16_to_cpu(phy_flags_hw & RX_RES_PHY_FLAGS_ANTENNA_MSK) >> 4; 3385 iwl4965_rt->rt_antenna = le16_to_cpu(antenna) >> 4;
3385 3386
3386 /* set the preamble flag if appropriate */ 3387 /* set the preamble flag if appropriate */
3387 if (phy_flags_hw & RX_RES_PHY_FLAGS_SHORT_PREAMBLE_MSK) 3388 if (phy_flags_hw & RX_RES_PHY_FLAGS_SHORT_PREAMBLE_MSK)