diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-04-01 11:51:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-08 16:43:50 -0400 |
commit | a0b484fee72fc18eb9145011a5edec922fafbc15 (patch) | |
tree | a71180b9a8104253657f28c9e43e91724c17a32e /drivers/net/wireless/iwlwifi/iwl-3945.c | |
parent | 16788599a9601cbba6ad7b58b3b52227ea59c013 (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-3945.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index eb30819cddc4..0d3cc3559039 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -524,7 +524,7 @@ static void iwl3945_add_radiotap(struct iwl3945_priv *priv, | |||
524 | s8 noise = 0; | 524 | s8 noise = 0; |
525 | int rate = stats->rate_idx; | 525 | int rate = stats->rate_idx; |
526 | u64 tsf = stats->mactime; | 526 | u64 tsf = stats->mactime; |
527 | __le16 phy_flags_hw = rx_hdr->phy_flags; | 527 | __le16 phy_flags_hw = rx_hdr->phy_flags, antenna; |
528 | 528 | ||
529 | struct iwl3945_rt_rx_hdr { | 529 | struct iwl3945_rt_rx_hdr { |
530 | struct ieee80211_radiotap_header rt_hdr; | 530 | struct ieee80211_radiotap_header rt_hdr; |
@@ -596,8 +596,8 @@ static void iwl3945_add_radiotap(struct iwl3945_priv *priv, | |||
596 | iwl3945_rt->rt_rate = iwl3945_rates[rate].ieee; | 596 | iwl3945_rt->rt_rate = iwl3945_rates[rate].ieee; |
597 | 597 | ||
598 | /* antenna number */ | 598 | /* antenna number */ |
599 | iwl3945_rt->rt_antenna = | 599 | antenna = phy_flags_hw & RX_RES_PHY_FLAGS_ANTENNA_MSK; |
600 | le16_to_cpu(phy_flags_hw & RX_RES_PHY_FLAGS_ANTENNA_MSK) >> 4; | 600 | iwl3945_rt->rt_antenna = le16_to_cpu(antenna) >> 4; |
601 | 601 | ||
602 | /* set the preamble flag if we have it */ | 602 | /* set the preamble flag if we have it */ |
603 | if (phy_flags_hw & RX_RES_PHY_FLAGS_SHORT_PREAMBLE_MSK) | 603 | if (phy_flags_hw & RX_RES_PHY_FLAGS_SHORT_PREAMBLE_MSK) |