aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl4965-base.c
diff options
context:
space:
mode:
authorIan Schram <ischram@telenet.be>2007-10-25 05:15:29 -0400
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:03:12 -0500
commitbc434dd2961763d33836f6e2e119e1d4a6325e4d (patch)
tree5cb2b45d1db0209db89cdcb3622f8d16fb057644 /drivers/net/wireless/iwlwifi/iwl4965-base.c
parentbbc5807bedd4196d7797821a122f0ac64699de22 (diff)
iwlwifi: Beautify by removing superfluous newlines and code
Moving code around, lindent, and whatnot created several places where there appeared to be an 75 column "rule" instead of 80. This patch removes those that I can spot, hopefully increasing readability. Signed-off-by: Ian Schram <ischram@telenet.be> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index 0a878cf49e07..076c5518211b 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -1384,7 +1384,6 @@ static int iwl_update_sta_key_info(struct iwl_priv *priv,
1384 break; 1384 break;
1385 case ALG_TKIP: 1385 case ALG_TKIP:
1386 case ALG_WEP: 1386 case ALG_WEP:
1387 return -EINVAL;
1388 default: 1387 default:
1389 return -EINVAL; 1388 return -EINVAL;
1390 } 1389 }
@@ -2734,11 +2733,9 @@ static void iwl_build_tx_cmd_basic(struct iwl_priv *priv,
2734 if ((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_MGMT) { 2733 if ((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_MGMT) {
2735 if ((fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_ASSOC_REQ || 2734 if ((fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_ASSOC_REQ ||
2736 (fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_REASSOC_REQ) 2735 (fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_REASSOC_REQ)
2737 cmd->cmd.tx.timeout.pm_frame_timeout = 2736 cmd->cmd.tx.timeout.pm_frame_timeout = cpu_to_le16(3);
2738 cpu_to_le16(3);
2739 else 2737 else
2740 cmd->cmd.tx.timeout.pm_frame_timeout = 2738 cmd->cmd.tx.timeout.pm_frame_timeout = cpu_to_le16(2);
2741 cpu_to_le16(2);
2742 } else 2739 } else
2743 cmd->cmd.tx.timeout.pm_frame_timeout = 0; 2740 cmd->cmd.tx.timeout.pm_frame_timeout = 0;
2744 2741
@@ -3249,24 +3246,21 @@ int is_duplicate_packet(struct iwl_priv *priv, struct ieee80211_hdr *header)
3249 int index = mac[5] & (IWL_IBSS_MAC_HASH_SIZE - 1); 3246 int index = mac[5] & (IWL_IBSS_MAC_HASH_SIZE - 1);
3250 3247
3251 __list_for_each(p, &priv->ibss_mac_hash[index]) { 3248 __list_for_each(p, &priv->ibss_mac_hash[index]) {
3252 entry = 3249 entry = list_entry(p, struct iwl_ibss_seq, list);
3253 list_entry(p, struct iwl_ibss_seq, list);
3254 if (!compare_ether_addr(entry->mac, mac)) 3250 if (!compare_ether_addr(entry->mac, mac))
3255 break; 3251 break;
3256 } 3252 }
3257 if (p == &priv->ibss_mac_hash[index]) { 3253 if (p == &priv->ibss_mac_hash[index]) {
3258 entry = kzalloc(sizeof(*entry), GFP_ATOMIC); 3254 entry = kzalloc(sizeof(*entry), GFP_ATOMIC);
3259 if (!entry) { 3255 if (!entry) {
3260 IWL_ERROR 3256 IWL_ERROR("Cannot malloc new mac entry\n");
3261 ("Cannot malloc new mac entry\n");
3262 return 0; 3257 return 0;
3263 } 3258 }
3264 memcpy(entry->mac, mac, ETH_ALEN); 3259 memcpy(entry->mac, mac, ETH_ALEN);
3265 entry->seq_num = seq; 3260 entry->seq_num = seq;
3266 entry->frag_num = frag; 3261 entry->frag_num = frag;
3267 entry->packet_time = jiffies; 3262 entry->packet_time = jiffies;
3268 list_add(&entry->list, 3263 list_add(&entry->list, &priv->ibss_mac_hash[index]);
3269 &priv->ibss_mac_hash[index]);
3270 return 0; 3264 return 0;
3271 } 3265 }
3272 last_seq = &entry->seq_num; 3266 last_seq = &entry->seq_num;
@@ -7234,8 +7228,7 @@ static void iwl_bg_post_associate(struct work_struct *data)
7234 7228
7235static void iwl_bg_abort_scan(struct work_struct *work) 7229static void iwl_bg_abort_scan(struct work_struct *work)
7236{ 7230{
7237 struct iwl_priv *priv = container_of(work, struct iwl_priv, 7231 struct iwl_priv *priv = container_of(work, struct iwl_priv, abort_scan);
7238 abort_scan);
7239 7232
7240 if (!iwl_is_ready(priv)) 7233 if (!iwl_is_ready(priv))
7241 return; 7234 return;