aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/airo.c3
-rw-r--r--drivers/net/wireless/atmel.c3
-rw-r--r--drivers/net/wireless/b43legacy/rfkill.c2
-rw-r--r--drivers/net/wireless/b43legacy/rfkill.h4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945-hw.h2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965-hw.h2
-rw-r--r--drivers/net/wireless/libertas/wext.c6
-rw-r--r--drivers/net/wireless/wavelan_cs.c10
8 files changed, 14 insertions, 18 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
index d8948bf8a275..42670acd144b 100644
--- a/drivers/net/wireless/airo.c
+++ b/drivers/net/wireless/airo.c
@@ -6408,9 +6408,8 @@ static int airo_set_encode(struct net_device *dev,
6408 set_wep_key(local, index, NULL, 0, perm, 1); 6408 set_wep_key(local, index, NULL, 0, perm, 1);
6409 } else 6409 } else
6410 /* Don't complain if only change the mode */ 6410 /* Don't complain if only change the mode */
6411 if(!(dwrq->flags & IW_ENCODE_MODE)) { 6411 if (!(dwrq->flags & IW_ENCODE_MODE))
6412 return -EINVAL; 6412 return -EINVAL;
6413 }
6414 } 6413 }
6415 /* Read the flags */ 6414 /* Read the flags */
6416 if(dwrq->flags & IW_ENCODE_DISABLED) 6415 if(dwrq->flags & IW_ENCODE_DISABLED)
diff --git a/drivers/net/wireless/atmel.c b/drivers/net/wireless/atmel.c
index 57cc7e58bfe5..32fbaf20d272 100644
--- a/drivers/net/wireless/atmel.c
+++ b/drivers/net/wireless/atmel.c
@@ -1759,9 +1759,8 @@ static int atmel_set_encode(struct net_device *dev,
1759 priv->default_key = index; 1759 priv->default_key = index;
1760 } else 1760 } else
1761 /* Don't complain if only change the mode */ 1761 /* Don't complain if only change the mode */
1762 if (!(dwrq->flags & IW_ENCODE_MODE)) { 1762 if (!(dwrq->flags & IW_ENCODE_MODE))
1763 return -EINVAL; 1763 return -EINVAL;
1764 }
1765 } 1764 }
1766 /* Read the flags */ 1765 /* Read the flags */
1767 if (dwrq->flags & IW_ENCODE_DISABLED) { 1766 if (dwrq->flags & IW_ENCODE_DISABLED) {
diff --git a/drivers/net/wireless/b43legacy/rfkill.c b/drivers/net/wireless/b43legacy/rfkill.c
index b6bf205c6455..a366129c8b0b 100644
--- a/drivers/net/wireless/b43legacy/rfkill.c
+++ b/drivers/net/wireless/b43legacy/rfkill.c
@@ -97,7 +97,7 @@ out_unlock:
97 return err; 97 return err;
98} 98}
99 99
100char * b43legacy_rfkill_led_name(struct b43legacy_wldev *dev) 100char *b43legacy_rfkill_led_name(struct b43legacy_wldev *dev)
101{ 101{
102 struct b43legacy_wl *wl = dev->wl; 102 struct b43legacy_wl *wl = dev->wl;
103 103
diff --git a/drivers/net/wireless/b43legacy/rfkill.h b/drivers/net/wireless/b43legacy/rfkill.h
index 4a81ba3f54f2..b68215e788e2 100644
--- a/drivers/net/wireless/b43legacy/rfkill.h
+++ b/drivers/net/wireless/b43legacy/rfkill.h
@@ -27,7 +27,7 @@ void b43legacy_rfkill_free(struct b43legacy_wldev *dev);
27void b43legacy_rfkill_init(struct b43legacy_wldev *dev); 27void b43legacy_rfkill_init(struct b43legacy_wldev *dev);
28void b43legacy_rfkill_exit(struct b43legacy_wldev *dev); 28void b43legacy_rfkill_exit(struct b43legacy_wldev *dev);
29 29
30char * b43legacy_rfkill_led_name(struct b43legacy_wldev *dev); 30char *b43legacy_rfkill_led_name(struct b43legacy_wldev *dev);
31 31
32 32
33#else /* CONFIG_B43LEGACY_RFKILL */ 33#else /* CONFIG_B43LEGACY_RFKILL */
@@ -49,7 +49,7 @@ static inline void b43legacy_rfkill_init(struct b43legacy_wldev *dev)
49static inline void b43legacy_rfkill_exit(struct b43legacy_wldev *dev) 49static inline void b43legacy_rfkill_exit(struct b43legacy_wldev *dev)
50{ 50{
51} 51}
52static inline char * b43legacy_rfkill_led_name(struct b43legacy_wldev *dev) 52static inline char *b43legacy_rfkill_led_name(struct b43legacy_wldev *dev)
53{ 53{
54 return NULL; 54 return NULL;
55} 55}
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-hw.h b/drivers/net/wireless/iwlwifi/iwl-3945-hw.h
index 0a5a08d19f55..71c9a7e32d1b 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945-hw.h
+++ b/drivers/net/wireless/iwlwifi/iwl-3945-hw.h
@@ -350,7 +350,7 @@ struct iwl_eeprom {
350 350
351#define CSR_FH_INT_TX_MASK (CSR_FH_INT_BIT_TX_CHNL6 | \ 351#define CSR_FH_INT_TX_MASK (CSR_FH_INT_BIT_TX_CHNL6 | \
352 CSR_FH_INT_BIT_TX_CHNL1 | \ 352 CSR_FH_INT_BIT_TX_CHNL1 | \
353 CSR_FH_INT_BIT_TX_CHNL0 ) 353 CSR_FH_INT_BIT_TX_CHNL0)
354 354
355 355
356/* RESET */ 356/* RESET */
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
index 21c75774cf4e..4afd69da375f 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
@@ -400,7 +400,7 @@ struct iwl_eeprom {
400 400
401#define CSR_FH_INT_TX_MASK (CSR_FH_INT_BIT_TX_CHNL6 | \ 401#define CSR_FH_INT_TX_MASK (CSR_FH_INT_BIT_TX_CHNL6 | \
402 CSR_FH_INT_BIT_TX_CHNL1 | \ 402 CSR_FH_INT_BIT_TX_CHNL1 | \
403 CSR_FH_INT_BIT_TX_CHNL0 ) 403 CSR_FH_INT_BIT_TX_CHNL0)
404 404
405 405
406/* RESET */ 406/* RESET */
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c
index 4ef5b9e00c77..19c2873d2d78 100644
--- a/drivers/net/wireless/libertas/wext.c
+++ b/drivers/net/wireless/libertas/wext.c
@@ -32,10 +32,8 @@ static inline void libertas_postpone_association_work(wlan_private *priv)
32static inline void libertas_cancel_association_work(wlan_private *priv) 32static inline void libertas_cancel_association_work(wlan_private *priv)
33{ 33{
34 cancel_delayed_work(&priv->assoc_work); 34 cancel_delayed_work(&priv->assoc_work);
35 if (priv->adapter->pending_assoc_req) { 35 kfree(priv->adapter->pending_assoc_req);
36 kfree(priv->adapter->pending_assoc_req); 36 priv->adapter->pending_assoc_req = NULL;
37 priv->adapter->pending_assoc_req = NULL;
38 }
39} 37}
40 38
41 39
diff --git a/drivers/net/wireless/wavelan_cs.c b/drivers/net/wireless/wavelan_cs.c
index f5b38de4f0df..da1d4e8f0f6b 100644
--- a/drivers/net/wireless/wavelan_cs.c
+++ b/drivers/net/wireless/wavelan_cs.c
@@ -3223,14 +3223,14 @@ wv_mmc_init(struct net_device * dev)
3223 * non-NCR/AT&T/Lucent PCMCIA cards, see wavelan_cs.h for detail on 3223 * non-NCR/AT&T/Lucent PCMCIA cards, see wavelan_cs.h for detail on
3224 * how to configure your card... 3224 * how to configure your card...
3225 */ 3225 */
3226 for(i = 0; i < ARRAY_SIZE(MAC_ADDRESSES); i++) 3226 for (i = 0; i < ARRAY_SIZE(MAC_ADDRESSES); i++)
3227 if((psa.psa_univ_mac_addr[0] == MAC_ADDRESSES[i][0]) && 3227 if ((psa.psa_univ_mac_addr[0] == MAC_ADDRESSES[i][0]) &&
3228 (psa.psa_univ_mac_addr[1] == MAC_ADDRESSES[i][1]) && 3228 (psa.psa_univ_mac_addr[1] == MAC_ADDRESSES[i][1]) &&
3229 (psa.psa_univ_mac_addr[2] == MAC_ADDRESSES[i][2])) 3229 (psa.psa_univ_mac_addr[2] == MAC_ADDRESSES[i][2]))
3230 break; 3230 break;
3231 3231
3232 /* If we have not found it... */ 3232 /* If we have not found it... */
3233 if(i == ARRAY_SIZE(MAC_ADDRESSES)) 3233 if (i == ARRAY_SIZE(MAC_ADDRESSES))
3234 { 3234 {
3235#ifdef DEBUG_CONFIG_ERRORS 3235#ifdef DEBUG_CONFIG_ERRORS
3236 printk(KERN_WARNING "%s: wv_mmc_init(): Invalid MAC address: %02X:%02X:%02X:...\n", 3236 printk(KERN_WARNING "%s: wv_mmc_init(): Invalid MAC address: %02X:%02X:%02X:...\n",