aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/mac80211/aes_ccm.c2
-rw-r--r--net/mac80211/aes_ccm.h2
-rw-r--r--net/mac80211/debugfs_netdev.c2
-rw-r--r--net/mac80211/ieee80211_i.h6
-rw-r--r--net/mac80211/iface.c3
-rw-r--r--net/mac80211/main.c6
-rw-r--r--net/mac80211/mlme.c31
-rw-r--r--net/mac80211/tkip.h4
-rw-r--r--net/mac80211/wep.h2
9 files changed, 27 insertions, 31 deletions
diff --git a/net/mac80211/aes_ccm.c b/net/mac80211/aes_ccm.c
index 59f1691f62c8..4d4c2dfcf9a0 100644
--- a/net/mac80211/aes_ccm.c
+++ b/net/mac80211/aes_ccm.c
@@ -134,7 +134,7 @@ int ieee80211_aes_ccm_decrypt(struct crypto_cipher *tfm, u8 *scratch,
134} 134}
135 135
136 136
137struct crypto_cipher * ieee80211_aes_key_setup_encrypt(const u8 key[]) 137struct crypto_cipher *ieee80211_aes_key_setup_encrypt(const u8 key[])
138{ 138{
139 struct crypto_cipher *tfm; 139 struct crypto_cipher *tfm;
140 140
diff --git a/net/mac80211/aes_ccm.h b/net/mac80211/aes_ccm.h
index 885f19030b29..8cd0f14aab4d 100644
--- a/net/mac80211/aes_ccm.h
+++ b/net/mac80211/aes_ccm.h
@@ -14,7 +14,7 @@
14 14
15#define AES_BLOCK_LEN 16 15#define AES_BLOCK_LEN 16
16 16
17struct crypto_cipher * ieee80211_aes_key_setup_encrypt(const u8 key[]); 17struct crypto_cipher *ieee80211_aes_key_setup_encrypt(const u8 key[]);
18void ieee80211_aes_ccm_encrypt(struct crypto_cipher *tfm, u8 *scratch, 18void ieee80211_aes_ccm_encrypt(struct crypto_cipher *tfm, u8 *scratch,
19 u8 *b_0, u8 *aad, u8 *data, size_t data_len, 19 u8 *b_0, u8 *aad, u8 *data, size_t data_len,
20 u8 *cdata, u8 *mic); 20 u8 *cdata, u8 *mic);
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c
index e3326d046944..3ae5493d728b 100644
--- a/net/mac80211/debugfs_netdev.c
+++ b/net/mac80211/debugfs_netdev.c
@@ -528,7 +528,7 @@ void ieee80211_debugfs_change_if_type(struct ieee80211_sub_if_data *sdata,
528 add_files(sdata); 528 add_files(sdata);
529} 529}
530 530
531static int netdev_notify(struct notifier_block * nb, 531static int netdev_notify(struct notifier_block *nb,
532 unsigned long state, 532 unsigned long state,
533 void *ndev) 533 void *ndev)
534{ 534{
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index c7314bf4bec2..a05e1db36993 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -919,9 +919,9 @@ ieee80211_rx_result ieee80211_sta_rx_scan(
919void ieee80211_rx_bss_list_init(struct net_device *dev); 919void ieee80211_rx_bss_list_init(struct net_device *dev);
920void ieee80211_rx_bss_list_deinit(struct net_device *dev); 920void ieee80211_rx_bss_list_deinit(struct net_device *dev);
921int ieee80211_sta_set_extra_ie(struct net_device *dev, char *ie, size_t len); 921int ieee80211_sta_set_extra_ie(struct net_device *dev, char *ie, size_t len);
922struct sta_info * ieee80211_ibss_add_sta(struct net_device *dev, 922struct sta_info *ieee80211_ibss_add_sta(struct net_device *dev,
923 struct sk_buff *skb, u8 *bssid, 923 struct sk_buff *skb, u8 *bssid,
924 u8 *addr); 924 u8 *addr);
925int ieee80211_sta_deauthenticate(struct net_device *dev, u16 reason); 925int ieee80211_sta_deauthenticate(struct net_device *dev, u16 reason);
926int ieee80211_sta_disassociate(struct net_device *dev, u16 reason); 926int ieee80211_sta_disassociate(struct net_device *dev, u16 reason);
927void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata, 927void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata,
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index 80954a512185..f41c7e0de622 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -33,9 +33,8 @@ static void ieee80211_if_sdata_deinit(struct ieee80211_sub_if_data *sdata)
33{ 33{
34 int i; 34 int i;
35 35
36 for (i = 0; i < IEEE80211_FRAGMENT_MAX; i++) { 36 for (i = 0; i < IEEE80211_FRAGMENT_MAX; i++)
37 __skb_queue_purge(&sdata->fragments[i].skb_list); 37 __skb_queue_purge(&sdata->fragments[i].skb_list);
38 }
39} 38}
40 39
41/* Must be called with rtnl lock held. */ 40/* Must be called with rtnl lock held. */
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 9ad4e3631b6b..e19be27a3def 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -385,8 +385,8 @@ static int ieee80211_open(struct net_device *dev)
385 * yet be effective. Trigger execution of ieee80211_sta_work 385 * yet be effective. Trigger execution of ieee80211_sta_work
386 * to fix this. 386 * to fix this.
387 */ 387 */
388 if(sdata->vif.type == IEEE80211_IF_TYPE_STA || 388 if (sdata->vif.type == IEEE80211_IF_TYPE_STA ||
389 sdata->vif.type == IEEE80211_IF_TYPE_IBSS) { 389 sdata->vif.type == IEEE80211_IF_TYPE_IBSS) {
390 struct ieee80211_if_sta *ifsta = &sdata->u.sta; 390 struct ieee80211_if_sta *ifsta = &sdata->u.sta;
391 queue_work(local->hw.workqueue, &ifsta->work); 391 queue_work(local->hw.workqueue, &ifsta->work);
392 } 392 }
@@ -1482,7 +1482,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb,
1482 return; 1482 return;
1483 } 1483 }
1484 1484
1485 rthdr = (struct ieee80211_tx_status_rtap_hdr*) 1485 rthdr = (struct ieee80211_tx_status_rtap_hdr *)
1486 skb_push(skb, sizeof(*rthdr)); 1486 skb_push(skb, sizeof(*rthdr));
1487 1487
1488 memset(rthdr, 0, sizeof(*rthdr)); 1488 memset(rthdr, 0, sizeof(*rthdr));
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index a5e5c31c23ab..de09f58d9683 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -306,28 +306,24 @@ static void ieee80211_sta_wmm_params(struct net_device *dev,
306 switch (aci) { 306 switch (aci) {
307 case 1: 307 case 1:
308 queue = IEEE80211_TX_QUEUE_DATA3; 308 queue = IEEE80211_TX_QUEUE_DATA3;
309 if (acm) { 309 if (acm)
310 local->wmm_acm |= BIT(0) | BIT(3); 310 local->wmm_acm |= BIT(0) | BIT(3);
311 }
312 break; 311 break;
313 case 2: 312 case 2:
314 queue = IEEE80211_TX_QUEUE_DATA1; 313 queue = IEEE80211_TX_QUEUE_DATA1;
315 if (acm) { 314 if (acm)
316 local->wmm_acm |= BIT(4) | BIT(5); 315 local->wmm_acm |= BIT(4) | BIT(5);
317 }
318 break; 316 break;
319 case 3: 317 case 3:
320 queue = IEEE80211_TX_QUEUE_DATA0; 318 queue = IEEE80211_TX_QUEUE_DATA0;
321 if (acm) { 319 if (acm)
322 local->wmm_acm |= BIT(6) | BIT(7); 320 local->wmm_acm |= BIT(6) | BIT(7);
323 }
324 break; 321 break;
325 case 0: 322 case 0:
326 default: 323 default:
327 queue = IEEE80211_TX_QUEUE_DATA2; 324 queue = IEEE80211_TX_QUEUE_DATA2;
328 if (acm) { 325 if (acm)
329 local->wmm_acm |= BIT(1) | BIT(2); 326 local->wmm_acm |= BIT(1) | BIT(2);
330 }
331 break; 327 break;
332 } 328 }
333 329
@@ -706,9 +702,8 @@ static void ieee80211_send_assoc(struct net_device *dev,
706 if (bss) { 702 if (bss) {
707 if (bss->capability & WLAN_CAPABILITY_PRIVACY) 703 if (bss->capability & WLAN_CAPABILITY_PRIVACY)
708 capab |= WLAN_CAPABILITY_PRIVACY; 704 capab |= WLAN_CAPABILITY_PRIVACY;
709 if (bss->wmm_ie) { 705 if (bss->wmm_ie)
710 wmm = 1; 706 wmm = 1;
711 }
712 ieee80211_rx_bss_put(dev, bss); 707 ieee80211_rx_bss_put(dev, bss);
713 } 708 }
714 709
@@ -1805,9 +1800,8 @@ static void ieee80211_rx_mgmt_deauth(struct net_device *dev,
1805 " (reason=%d)\n", 1800 " (reason=%d)\n",
1806 dev->name, print_mac(mac, mgmt->sa), reason_code); 1801 dev->name, print_mac(mac, mgmt->sa), reason_code);
1807 1802
1808 if (ifsta->flags & IEEE80211_STA_AUTHENTICATED) { 1803 if (ifsta->flags & IEEE80211_STA_AUTHENTICATED)
1809 printk(KERN_DEBUG "%s: deauthenticated\n", dev->name); 1804 printk(KERN_DEBUG "%s: deauthenticated\n", dev->name);
1810 }
1811 1805
1812 if (ifsta->state == IEEE80211_AUTHENTICATE || 1806 if (ifsta->state == IEEE80211_AUTHENTICATE ||
1813 ifsta->state == IEEE80211_ASSOCIATE || 1807 ifsta->state == IEEE80211_ASSOCIATE ||
@@ -3517,10 +3511,12 @@ static int ieee80211_sta_create_ibss(struct net_device *dev,
3517 bss->beacon_int = local->hw.conf.beacon_int; 3511 bss->beacon_int = local->hw.conf.beacon_int;
3518 bss->last_update = jiffies; 3512 bss->last_update = jiffies;
3519 bss->capability = WLAN_CAPABILITY_IBSS; 3513 bss->capability = WLAN_CAPABILITY_IBSS;
3520 if (sdata->default_key) { 3514
3515 if (sdata->default_key)
3521 bss->capability |= WLAN_CAPABILITY_PRIVACY; 3516 bss->capability |= WLAN_CAPABILITY_PRIVACY;
3522 } else 3517 else
3523 sdata->drop_unencrypted = 0; 3518 sdata->drop_unencrypted = 0;
3519
3524 bss->supp_rates_len = sband->n_bitrates; 3520 bss->supp_rates_len = sband->n_bitrates;
3525 pos = bss->supp_rates; 3521 pos = bss->supp_rates;
3526 for (i = 0; i < sband->n_bitrates; i++) { 3522 for (i = 0; i < sband->n_bitrates; i++) {
@@ -4203,6 +4199,7 @@ int ieee80211_sta_set_extra_ie(struct net_device *dev, char *ie, size_t len)
4203{ 4199{
4204 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); 4200 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
4205 struct ieee80211_if_sta *ifsta = &sdata->u.sta; 4201 struct ieee80211_if_sta *ifsta = &sdata->u.sta;
4202
4206 kfree(ifsta->extra_ie); 4203 kfree(ifsta->extra_ie);
4207 if (len == 0) { 4204 if (len == 0) {
4208 ifsta->extra_ie = NULL; 4205 ifsta->extra_ie = NULL;
@@ -4220,9 +4217,9 @@ int ieee80211_sta_set_extra_ie(struct net_device *dev, char *ie, size_t len)
4220} 4217}
4221 4218
4222 4219
4223struct sta_info * ieee80211_ibss_add_sta(struct net_device *dev, 4220struct sta_info *ieee80211_ibss_add_sta(struct net_device *dev,
4224 struct sk_buff *skb, u8 *bssid, 4221 struct sk_buff *skb, u8 *bssid,
4225 u8 *addr) 4222 u8 *addr)
4226{ 4223{
4227 struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); 4224 struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
4228 struct sta_info *sta; 4225 struct sta_info *sta;
diff --git a/net/mac80211/tkip.h b/net/mac80211/tkip.h
index b7c2ee763d9d..1fa0bb4dba3c 100644
--- a/net/mac80211/tkip.h
+++ b/net/mac80211/tkip.h
@@ -13,8 +13,8 @@
13#include <linux/crypto.h> 13#include <linux/crypto.h>
14#include "key.h" 14#include "key.h"
15 15
16u8 * ieee80211_tkip_add_iv(u8 *pos, struct ieee80211_key *key, 16u8 *ieee80211_tkip_add_iv(u8 *pos, struct ieee80211_key *key,
17 u8 iv0, u8 iv1, u8 iv2); 17 u8 iv0, u8 iv1, u8 iv2);
18void ieee80211_tkip_gen_phase1key(struct ieee80211_key *key, u8 *ta, 18void ieee80211_tkip_gen_phase1key(struct ieee80211_key *key, u8 *ta,
19 u16 *phase1key); 19 u16 *phase1key);
20void ieee80211_tkip_gen_rc4key(struct ieee80211_key *key, u8 *ta, 20void ieee80211_tkip_gen_rc4key(struct ieee80211_key *key, u8 *ta,
diff --git a/net/mac80211/wep.h b/net/mac80211/wep.h
index 363779c50658..e587172115b8 100644
--- a/net/mac80211/wep.h
+++ b/net/mac80211/wep.h
@@ -26,7 +26,7 @@ int ieee80211_wep_encrypt(struct ieee80211_local *local, struct sk_buff *skb,
26 struct ieee80211_key *key); 26 struct ieee80211_key *key);
27int ieee80211_wep_decrypt(struct ieee80211_local *local, struct sk_buff *skb, 27int ieee80211_wep_decrypt(struct ieee80211_local *local, struct sk_buff *skb,
28 struct ieee80211_key *key); 28 struct ieee80211_key *key);
29u8 * ieee80211_wep_is_weak_iv(struct sk_buff *skb, struct ieee80211_key *key); 29u8 *ieee80211_wep_is_weak_iv(struct sk_buff *skb, struct ieee80211_key *key);
30 30
31ieee80211_rx_result 31ieee80211_rx_result
32ieee80211_crypto_wep_decrypt(struct ieee80211_rx_data *rx); 32ieee80211_crypto_wep_decrypt(struct ieee80211_rx_data *rx);