aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_sta.c
diff options
context:
space:
mode:
authorMichael Wu <flamingice@sourmilk.net>2007-07-27 09:43:24 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:47:40 -0400
commit0ec0b7ac3cdfb8635d75aead5733f7a424ea4ad3 (patch)
treee9f3a2cf668c41112b98297a4bac870104cc5e6f /net/mac80211/ieee80211_sta.c
parentd9430a32886f70c0c16d67c525f6cda2df7906ee (diff)
[MAC80211]: use more GFP_KERNEL instead of GFP_ATOMIC
This patch replaces atomic allocations with regular ones where possible. Merged with "revert some GFP_ATOMIC -> GFP_KERNEL changes" from Michael Wu: > Some of the allocations made with GFP_ATOMIC really were necessary. Signed-off-by: Michael Wu <flamingice@sourmilk.net> Signed-off-by: Jiri Benc <jbenc@suse.cz> Signed-off-by: John W. Linville <linville@tuxdriver.com>
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