aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_sta.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/ieee80211_sta.c')
-rw-r--r--net/mac80211/ieee80211_sta.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c
index 33414f160538..f43c39f11223 100644
--- a/net/mac80211/ieee80211_sta.c
+++ b/net/mac80211/ieee80211_sta.c
@@ -363,7 +363,7 @@ static void ieee80211_sta_send_associnfo(struct net_device *dev,
363 return; 363 return;
364 364
365 buf = kmalloc(50 + 2 * (ifsta->assocreq_ies_len + 365 buf = kmalloc(50 + 2 * (ifsta->assocreq_ies_len +
366 ifsta->assocresp_ies_len), GFP_ATOMIC); 366 ifsta->assocresp_ies_len), GFP_KERNEL);
367 if (!buf) 367 if (!buf)
368 return; 368 return;
369 369
@@ -644,7 +644,7 @@ static void ieee80211_send_assoc(struct net_device *dev,
644 644
645 kfree(ifsta->assocreq_ies); 645 kfree(ifsta->assocreq_ies);
646 ifsta->assocreq_ies_len = (skb->data + skb->len) - ies; 646 ifsta->assocreq_ies_len = (skb->data + skb->len) - ies;
647 ifsta->assocreq_ies = kmalloc(ifsta->assocreq_ies_len, GFP_ATOMIC); 647 ifsta->assocreq_ies = kmalloc(ifsta->assocreq_ies_len, GFP_KERNEL);
648 if (ifsta->assocreq_ies) 648 if (ifsta->assocreq_ies)
649 memcpy(ifsta->assocreq_ies, ies, ifsta->assocreq_ies_len); 649 memcpy(ifsta->assocreq_ies, ies, ifsta->assocreq_ies_len);
650 650
@@ -1244,7 +1244,7 @@ static void ieee80211_rx_mgmt_assoc_resp(struct net_device *dev,
1244 1244
1245 kfree(ifsta->assocresp_ies); 1245 kfree(ifsta->assocresp_ies);
1246 ifsta->assocresp_ies_len = len - (pos - (u8 *) mgmt); 1246 ifsta->assocresp_ies_len = len - (pos - (u8 *) mgmt);
1247 ifsta->assocresp_ies = kmalloc(ifsta->assocresp_ies_len, GFP_ATOMIC); 1247 ifsta->assocresp_ies = kmalloc(ifsta->assocresp_ies_len, GFP_KERNEL);
1248 if (ifsta->assocresp_ies) 1248 if (ifsta->assocresp_ies)
1249 memcpy(ifsta->assocresp_ies, pos, ifsta->assocresp_ies_len); 1249 memcpy(ifsta->assocresp_ies, pos, ifsta->assocresp_ies_len);
1250 1250
@@ -1254,7 +1254,7 @@ static void ieee80211_rx_mgmt_assoc_resp(struct net_device *dev,
1254 sta = sta_info_get(local, ifsta->bssid); 1254 sta = sta_info_get(local, ifsta->bssid);
1255 if (!sta) { 1255 if (!sta) {
1256 struct ieee80211_sta_bss *bss; 1256 struct ieee80211_sta_bss *bss;
1257 sta = sta_info_add(local, dev, ifsta->bssid, GFP_ATOMIC); 1257 sta = sta_info_add(local, dev, ifsta->bssid, GFP_KERNEL);
1258 if (!sta) { 1258 if (!sta) {
1259 printk(KERN_DEBUG "%s: failed to add STA entry for the" 1259 printk(KERN_DEBUG "%s: failed to add STA entry for the"
1260 " AP\n", dev->name); 1260 " AP\n", dev->name);
@@ -1771,7 +1771,7 @@ static void ieee80211_rx_mgmt_probe_req(struct net_device *dev,
1771 } 1771 }
1772 1772
1773 /* Reply with ProbeResp */ 1773 /* Reply with ProbeResp */
1774 skb = skb_copy(ifsta->probe_resp, GFP_ATOMIC); 1774 skb = skb_copy(ifsta->probe_resp, GFP_KERNEL);
1775 if (!skb) 1775 if (!skb)
1776 return; 1776 return;
1777 1777