diff options
author | Joe Perches <joe@perches.com> | 2011-08-29 17:17:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-13 15:45:02 -0400 |
commit | d15b84590a1d2ec021ada00a0e67ee5851a0ea2b (patch) | |
tree | 2a05aed04345641fec0647c409779345ef0166f3 | |
parent | 239289e446d4e86ae94b1ca57e358b106cc4bee6 (diff) |
mac80211: Remove unnecessary OOM logging messages
Removing unnecessary messages saves code and text.
Site specific OOM messages are duplications of a generic MM
out of memory message and aren't really useful, so just
delete them.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | net/mac80211/agg-rx.c | 19 | ||||
-rw-r--r-- | net/mac80211/agg-tx.c | 35 | ||||
-rw-r--r-- | net/mac80211/debugfs.c | 3 | ||||
-rw-r--r-- | net/mac80211/ht.c | 6 | ||||
-rw-r--r-- | net/mac80211/mesh.c | 5 | ||||
-rw-r--r-- | net/mac80211/mlme.c | 17 | ||||
-rw-r--r-- | net/mac80211/spectmgmt.c | 6 | ||||
-rw-r--r-- | net/mac80211/tx.c | 17 | ||||
-rw-r--r-- | net/mac80211/util.c | 11 | ||||
-rw-r--r-- | net/mac80211/work.c | 6 |
10 files changed, 32 insertions, 93 deletions
diff --git a/net/mac80211/agg-rx.c b/net/mac80211/agg-rx.c index fd1aaf2a4a6c..e6cab51dceb0 100644 --- a/net/mac80211/agg-rx.c +++ b/net/mac80211/agg-rx.c | |||
@@ -167,12 +167,8 @@ static void ieee80211_send_addba_resp(struct ieee80211_sub_if_data *sdata, u8 *d | |||
167 | u16 capab; | 167 | u16 capab; |
168 | 168 | ||
169 | skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom); | 169 | skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom); |
170 | 170 | if (!skb) | |
171 | if (!skb) { | ||
172 | printk(KERN_DEBUG "%s: failed to allocate buffer " | ||
173 | "for addba resp frame\n", sdata->name); | ||
174 | return; | 171 | return; |
175 | } | ||
176 | 172 | ||
177 | skb_reserve(skb, local->hw.extra_tx_headroom); | 173 | skb_reserve(skb, local->hw.extra_tx_headroom); |
178 | mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24); | 174 | mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24); |
@@ -279,14 +275,8 @@ void ieee80211_process_addba_request(struct ieee80211_local *local, | |||
279 | 275 | ||
280 | /* prepare A-MPDU MLME for Rx aggregation */ | 276 | /* prepare A-MPDU MLME for Rx aggregation */ |
281 | tid_agg_rx = kmalloc(sizeof(struct tid_ampdu_rx), GFP_KERNEL); | 277 | tid_agg_rx = kmalloc(sizeof(struct tid_ampdu_rx), GFP_KERNEL); |
282 | if (!tid_agg_rx) { | 278 | if (!tid_agg_rx) |
283 | #ifdef CONFIG_MAC80211_HT_DEBUG | ||
284 | if (net_ratelimit()) | ||
285 | printk(KERN_ERR "allocate rx mlme to tid %d failed\n", | ||
286 | tid); | ||
287 | #endif | ||
288 | goto end; | 279 | goto end; |
289 | } | ||
290 | 280 | ||
291 | spin_lock_init(&tid_agg_rx->reorder_lock); | 281 | spin_lock_init(&tid_agg_rx->reorder_lock); |
292 | 282 | ||
@@ -306,11 +296,6 @@ void ieee80211_process_addba_request(struct ieee80211_local *local, | |||
306 | tid_agg_rx->reorder_time = | 296 | tid_agg_rx->reorder_time = |
307 | kcalloc(buf_size, sizeof(unsigned long), GFP_KERNEL); | 297 | kcalloc(buf_size, sizeof(unsigned long), GFP_KERNEL); |
308 | if (!tid_agg_rx->reorder_buf || !tid_agg_rx->reorder_time) { | 298 | if (!tid_agg_rx->reorder_buf || !tid_agg_rx->reorder_time) { |
309 | #ifdef CONFIG_MAC80211_HT_DEBUG | ||
310 | if (net_ratelimit()) | ||
311 | printk(KERN_ERR "can not allocate reordering buffer " | ||
312 | "to tid %d\n", tid); | ||
313 | #endif | ||
314 | kfree(tid_agg_rx->reorder_buf); | 299 | kfree(tid_agg_rx->reorder_buf); |
315 | kfree(tid_agg_rx->reorder_time); | 300 | kfree(tid_agg_rx->reorder_time); |
316 | kfree(tid_agg_rx); | 301 | kfree(tid_agg_rx); |
diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c index 018108d1a2fd..f10e1096c332 100644 --- a/net/mac80211/agg-tx.c +++ b/net/mac80211/agg-tx.c | |||
@@ -68,11 +68,9 @@ static void ieee80211_send_addba_request(struct ieee80211_sub_if_data *sdata, | |||
68 | 68 | ||
69 | skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom); | 69 | skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom); |
70 | 70 | ||
71 | if (!skb) { | 71 | if (!skb) |
72 | printk(KERN_ERR "%s: failed to allocate buffer " | ||
73 | "for addba request frame\n", sdata->name); | ||
74 | return; | 72 | return; |
75 | } | 73 | |
76 | skb_reserve(skb, local->hw.extra_tx_headroom); | 74 | skb_reserve(skb, local->hw.extra_tx_headroom); |
77 | mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24); | 75 | mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24); |
78 | memset(mgmt, 0, 24); | 76 | memset(mgmt, 0, 24); |
@@ -114,11 +112,9 @@ void ieee80211_send_bar(struct ieee80211_sub_if_data *sdata, u8 *ra, u16 tid, u1 | |||
114 | u16 bar_control = 0; | 112 | u16 bar_control = 0; |
115 | 113 | ||
116 | skb = dev_alloc_skb(sizeof(*bar) + local->hw.extra_tx_headroom); | 114 | skb = dev_alloc_skb(sizeof(*bar) + local->hw.extra_tx_headroom); |
117 | if (!skb) { | 115 | if (!skb) |
118 | printk(KERN_ERR "%s: failed to allocate buffer for " | ||
119 | "bar frame\n", sdata->name); | ||
120 | return; | 116 | return; |
121 | } | 117 | |
122 | skb_reserve(skb, local->hw.extra_tx_headroom); | 118 | skb_reserve(skb, local->hw.extra_tx_headroom); |
123 | bar = (struct ieee80211_bar *)skb_put(skb, sizeof(*bar)); | 119 | bar = (struct ieee80211_bar *)skb_put(skb, sizeof(*bar)); |
124 | memset(bar, 0, sizeof(*bar)); | 120 | memset(bar, 0, sizeof(*bar)); |
@@ -413,11 +409,6 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid, | |||
413 | /* prepare A-MPDU MLME for Tx aggregation */ | 409 | /* prepare A-MPDU MLME for Tx aggregation */ |
414 | tid_tx = kzalloc(sizeof(struct tid_ampdu_tx), GFP_ATOMIC); | 410 | tid_tx = kzalloc(sizeof(struct tid_ampdu_tx), GFP_ATOMIC); |
415 | if (!tid_tx) { | 411 | if (!tid_tx) { |
416 | #ifdef CONFIG_MAC80211_HT_DEBUG | ||
417 | if (net_ratelimit()) | ||
418 | printk(KERN_ERR "allocate tx mlme to tid %d failed\n", | ||
419 | tid); | ||
420 | #endif | ||
421 | ret = -ENOMEM; | 412 | ret = -ENOMEM; |
422 | goto err_unlock_sta; | 413 | goto err_unlock_sta; |
423 | } | 414 | } |
@@ -574,14 +565,9 @@ void ieee80211_start_tx_ba_cb_irqsafe(struct ieee80211_vif *vif, | |||
574 | struct ieee80211_ra_tid *ra_tid; | 565 | struct ieee80211_ra_tid *ra_tid; |
575 | struct sk_buff *skb = dev_alloc_skb(0); | 566 | struct sk_buff *skb = dev_alloc_skb(0); |
576 | 567 | ||
577 | if (unlikely(!skb)) { | 568 | if (unlikely(!skb)) |
578 | #ifdef CONFIG_MAC80211_HT_DEBUG | ||
579 | if (net_ratelimit()) | ||
580 | printk(KERN_WARNING "%s: Not enough memory, " | ||
581 | "dropping start BA session", sdata->name); | ||
582 | #endif | ||
583 | return; | 569 | return; |
584 | } | 570 | |
585 | ra_tid = (struct ieee80211_ra_tid *) &skb->cb; | 571 | ra_tid = (struct ieee80211_ra_tid *) &skb->cb; |
586 | memcpy(&ra_tid->ra, ra, ETH_ALEN); | 572 | memcpy(&ra_tid->ra, ra, ETH_ALEN); |
587 | ra_tid->tid = tid; | 573 | ra_tid->tid = tid; |
@@ -727,14 +713,9 @@ void ieee80211_stop_tx_ba_cb_irqsafe(struct ieee80211_vif *vif, | |||
727 | struct ieee80211_ra_tid *ra_tid; | 713 | struct ieee80211_ra_tid *ra_tid; |
728 | struct sk_buff *skb = dev_alloc_skb(0); | 714 | struct sk_buff *skb = dev_alloc_skb(0); |
729 | 715 | ||
730 | if (unlikely(!skb)) { | 716 | if (unlikely(!skb)) |
731 | #ifdef CONFIG_MAC80211_HT_DEBUG | ||
732 | if (net_ratelimit()) | ||
733 | printk(KERN_WARNING "%s: Not enough memory, " | ||
734 | "dropping stop BA session", sdata->name); | ||
735 | #endif | ||
736 | return; | 717 | return; |
737 | } | 718 | |
738 | ra_tid = (struct ieee80211_ra_tid *) &skb->cb; | 719 | ra_tid = (struct ieee80211_ra_tid *) &skb->cb; |
739 | memcpy(&ra_tid->ra, ra, ETH_ALEN); | 720 | memcpy(&ra_tid->ra, ra, ETH_ALEN); |
740 | ra_tid->tid = tid; | 721 | ra_tid->tid = tid; |
diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index 267ed45ef6a2..569609b94c8c 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c | |||
@@ -297,6 +297,9 @@ static ssize_t hwflags_read(struct file *file, char __user *user_buf, | |||
297 | char *buf = kzalloc(mxln, GFP_KERNEL); | 297 | char *buf = kzalloc(mxln, GFP_KERNEL); |
298 | int sf = 0; /* how many written so far */ | 298 | int sf = 0; /* how many written so far */ |
299 | 299 | ||
300 | if (!buf) | ||
301 | return 0; | ||
302 | |||
300 | sf += snprintf(buf, mxln - sf, "0x%x\n", local->hw.flags); | 303 | sf += snprintf(buf, mxln - sf, "0x%x\n", local->hw.flags); |
301 | if (local->hw.flags & IEEE80211_HW_HAS_RATE_CONTROL) | 304 | if (local->hw.flags & IEEE80211_HW_HAS_RATE_CONTROL) |
302 | sf += snprintf(buf + sf, mxln - sf, "HAS_RATE_CONTROL\n"); | 305 | sf += snprintf(buf + sf, mxln - sf, "HAS_RATE_CONTROL\n"); |
diff --git a/net/mac80211/ht.c b/net/mac80211/ht.c index 7cfc286946c0..2b9b52c69569 100644 --- a/net/mac80211/ht.c +++ b/net/mac80211/ht.c | |||
@@ -186,12 +186,8 @@ void ieee80211_send_delba(struct ieee80211_sub_if_data *sdata, | |||
186 | u16 params; | 186 | u16 params; |
187 | 187 | ||
188 | skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom); | 188 | skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom); |
189 | 189 | if (!skb) | |
190 | if (!skb) { | ||
191 | printk(KERN_ERR "%s: failed to allocate buffer " | ||
192 | "for delba frame\n", sdata->name); | ||
193 | return; | 190 | return; |
194 | } | ||
195 | 191 | ||
196 | skb_reserve(skb, local->hw.extra_tx_headroom); | 192 | skb_reserve(skb, local->hw.extra_tx_headroom); |
197 | mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24); | 193 | mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24); |
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index 28ab510e621a..65acbf5eed2d 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c | |||
@@ -200,10 +200,9 @@ int mesh_rmc_check(u8 *sa, struct ieee80211s_hdr *mesh_hdr, | |||
200 | } | 200 | } |
201 | 201 | ||
202 | p = kmem_cache_alloc(rm_cache, GFP_ATOMIC); | 202 | p = kmem_cache_alloc(rm_cache, GFP_ATOMIC); |
203 | if (!p) { | 203 | if (!p) |
204 | printk(KERN_DEBUG "o11s: could not allocate RMC entry\n"); | ||
205 | return 0; | 204 | return 0; |
206 | } | 205 | |
207 | p->seqnum = seqnum; | 206 | p->seqnum = seqnum; |
208 | p->exp_time = jiffies + RMC_TIMEOUT; | 207 | p->exp_time = jiffies + RMC_TIMEOUT; |
209 | memcpy(p->sa, sa, ETH_ALEN); | 208 | memcpy(p->sa, sa, ETH_ALEN); |
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 60a6f273cd30..fb2f0f986de7 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -271,11 +271,9 @@ static void ieee80211_send_deauth_disassoc(struct ieee80211_sub_if_data *sdata, | |||
271 | struct ieee80211_mgmt *mgmt; | 271 | struct ieee80211_mgmt *mgmt; |
272 | 272 | ||
273 | skb = dev_alloc_skb(local->hw.extra_tx_headroom + sizeof(*mgmt)); | 273 | skb = dev_alloc_skb(local->hw.extra_tx_headroom + sizeof(*mgmt)); |
274 | if (!skb) { | 274 | if (!skb) |
275 | printk(KERN_DEBUG "%s: failed to allocate buffer for " | ||
276 | "deauth/disassoc frame\n", sdata->name); | ||
277 | return; | 275 | return; |
278 | } | 276 | |
279 | skb_reserve(skb, local->hw.extra_tx_headroom); | 277 | skb_reserve(skb, local->hw.extra_tx_headroom); |
280 | 278 | ||
281 | mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24); | 279 | mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24); |
@@ -354,11 +352,9 @@ static void ieee80211_send_4addr_nullfunc(struct ieee80211_local *local, | |||
354 | return; | 352 | return; |
355 | 353 | ||
356 | skb = dev_alloc_skb(local->hw.extra_tx_headroom + 30); | 354 | skb = dev_alloc_skb(local->hw.extra_tx_headroom + 30); |
357 | if (!skb) { | 355 | if (!skb) |
358 | printk(KERN_DEBUG "%s: failed to allocate buffer for 4addr " | ||
359 | "nullfunc frame\n", sdata->name); | ||
360 | return; | 356 | return; |
361 | } | 357 | |
362 | skb_reserve(skb, local->hw.extra_tx_headroom); | 358 | skb_reserve(skb, local->hw.extra_tx_headroom); |
363 | 359 | ||
364 | nullfunc = (struct ieee80211_hdr *) skb_put(skb, 30); | 360 | nullfunc = (struct ieee80211_hdr *) skb_put(skb, 30); |
@@ -2441,11 +2437,8 @@ static int ieee80211_pre_assoc(struct ieee80211_sub_if_data *sdata, | |||
2441 | int err; | 2437 | int err; |
2442 | 2438 | ||
2443 | sta = sta_info_alloc(sdata, bssid, GFP_KERNEL); | 2439 | sta = sta_info_alloc(sdata, bssid, GFP_KERNEL); |
2444 | if (!sta) { | 2440 | if (!sta) |
2445 | printk(KERN_DEBUG "%s: failed to alloc STA entry for" | ||
2446 | " the AP\n", sdata->name); | ||
2447 | return -ENOMEM; | 2441 | return -ENOMEM; |
2448 | } | ||
2449 | 2442 | ||
2450 | sta->dummy = true; | 2443 | sta->dummy = true; |
2451 | 2444 | ||
diff --git a/net/mac80211/spectmgmt.c b/net/mac80211/spectmgmt.c index 7733f66ee2c4..578eea3fc04d 100644 --- a/net/mac80211/spectmgmt.c +++ b/net/mac80211/spectmgmt.c | |||
@@ -32,12 +32,8 @@ static void ieee80211_send_refuse_measurement_request(struct ieee80211_sub_if_da | |||
32 | 32 | ||
33 | skb = dev_alloc_skb(sizeof(*msr_report) + local->hw.extra_tx_headroom + | 33 | skb = dev_alloc_skb(sizeof(*msr_report) + local->hw.extra_tx_headroom + |
34 | sizeof(struct ieee80211_msrment_ie)); | 34 | sizeof(struct ieee80211_msrment_ie)); |
35 | 35 | if (!skb) | |
36 | if (!skb) { | ||
37 | printk(KERN_ERR "%s: failed to allocate buffer for " | ||
38 | "measurement report frame\n", sdata->name); | ||
39 | return; | 36 | return; |
40 | } | ||
41 | 37 | ||
42 | skb_reserve(skb, local->hw.extra_tx_headroom); | 38 | skb_reserve(skb, local->hw.extra_tx_headroom); |
43 | msr_report = (struct ieee80211_mgmt *)skb_put(skb, 24); | 39 | msr_report = (struct ieee80211_mgmt *)skb_put(skb, 24); |
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 01072639666f..c9766ccb51a4 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -2365,11 +2365,9 @@ struct sk_buff *ieee80211_pspoll_get(struct ieee80211_hw *hw, | |||
2365 | local = sdata->local; | 2365 | local = sdata->local; |
2366 | 2366 | ||
2367 | skb = dev_alloc_skb(local->hw.extra_tx_headroom + sizeof(*pspoll)); | 2367 | skb = dev_alloc_skb(local->hw.extra_tx_headroom + sizeof(*pspoll)); |
2368 | if (!skb) { | 2368 | if (!skb) |
2369 | printk(KERN_DEBUG "%s: failed to allocate buffer for " | ||
2370 | "pspoll template\n", sdata->name); | ||
2371 | return NULL; | 2369 | return NULL; |
2372 | } | 2370 | |
2373 | skb_reserve(skb, local->hw.extra_tx_headroom); | 2371 | skb_reserve(skb, local->hw.extra_tx_headroom); |
2374 | 2372 | ||
2375 | pspoll = (struct ieee80211_pspoll *) skb_put(skb, sizeof(*pspoll)); | 2373 | pspoll = (struct ieee80211_pspoll *) skb_put(skb, sizeof(*pspoll)); |
@@ -2405,11 +2403,9 @@ struct sk_buff *ieee80211_nullfunc_get(struct ieee80211_hw *hw, | |||
2405 | local = sdata->local; | 2403 | local = sdata->local; |
2406 | 2404 | ||
2407 | skb = dev_alloc_skb(local->hw.extra_tx_headroom + sizeof(*nullfunc)); | 2405 | skb = dev_alloc_skb(local->hw.extra_tx_headroom + sizeof(*nullfunc)); |
2408 | if (!skb) { | 2406 | if (!skb) |
2409 | printk(KERN_DEBUG "%s: failed to allocate buffer for nullfunc " | ||
2410 | "template\n", sdata->name); | ||
2411 | return NULL; | 2407 | return NULL; |
2412 | } | 2408 | |
2413 | skb_reserve(skb, local->hw.extra_tx_headroom); | 2409 | skb_reserve(skb, local->hw.extra_tx_headroom); |
2414 | 2410 | ||
2415 | nullfunc = (struct ieee80211_hdr_3addr *) skb_put(skb, | 2411 | nullfunc = (struct ieee80211_hdr_3addr *) skb_put(skb, |
@@ -2444,11 +2440,8 @@ struct sk_buff *ieee80211_probereq_get(struct ieee80211_hw *hw, | |||
2444 | 2440 | ||
2445 | skb = dev_alloc_skb(local->hw.extra_tx_headroom + sizeof(*hdr) + | 2441 | skb = dev_alloc_skb(local->hw.extra_tx_headroom + sizeof(*hdr) + |
2446 | ie_ssid_len + ie_len); | 2442 | ie_ssid_len + ie_len); |
2447 | if (!skb) { | 2443 | if (!skb) |
2448 | printk(KERN_DEBUG "%s: failed to allocate buffer for probe " | ||
2449 | "request template\n", sdata->name); | ||
2450 | return NULL; | 2444 | return NULL; |
2451 | } | ||
2452 | 2445 | ||
2453 | skb_reserve(skb, local->hw.extra_tx_headroom); | 2446 | skb_reserve(skb, local->hw.extra_tx_headroom); |
2454 | 2447 | ||
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index ce916ff6ef08..1c1080274730 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
@@ -707,11 +707,9 @@ void ieee80211_send_auth(struct ieee80211_sub_if_data *sdata, | |||
707 | 707 | ||
708 | skb = dev_alloc_skb(local->hw.extra_tx_headroom + | 708 | skb = dev_alloc_skb(local->hw.extra_tx_headroom + |
709 | sizeof(*mgmt) + 6 + extra_len); | 709 | sizeof(*mgmt) + 6 + extra_len); |
710 | if (!skb) { | 710 | if (!skb) |
711 | printk(KERN_DEBUG "%s: failed to allocate buffer for auth " | ||
712 | "frame\n", sdata->name); | ||
713 | return; | 711 | return; |
714 | } | 712 | |
715 | skb_reserve(skb, local->hw.extra_tx_headroom); | 713 | skb_reserve(skb, local->hw.extra_tx_headroom); |
716 | 714 | ||
717 | mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24 + 6); | 715 | mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24 + 6); |
@@ -864,11 +862,8 @@ struct sk_buff *ieee80211_build_probe_req(struct ieee80211_sub_if_data *sdata, | |||
864 | 862 | ||
865 | /* FIXME: come up with a proper value */ | 863 | /* FIXME: come up with a proper value */ |
866 | buf = kmalloc(200 + ie_len, GFP_KERNEL); | 864 | buf = kmalloc(200 + ie_len, GFP_KERNEL); |
867 | if (!buf) { | 865 | if (!buf) |
868 | printk(KERN_DEBUG "%s: failed to allocate temporary IE " | ||
869 | "buffer\n", sdata->name); | ||
870 | return NULL; | 866 | return NULL; |
871 | } | ||
872 | 867 | ||
873 | /* | 868 | /* |
874 | * Do not send DS Channel parameter for directed probe requests | 869 | * Do not send DS Channel parameter for directed probe requests |
diff --git a/net/mac80211/work.c b/net/mac80211/work.c index 380b9a7462b6..bac34394c05e 100644 --- a/net/mac80211/work.c +++ b/net/mac80211/work.c | |||
@@ -229,11 +229,9 @@ static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata, | |||
229 | wk->ie_len + /* extra IEs */ | 229 | wk->ie_len + /* extra IEs */ |
230 | 9, /* WMM */ | 230 | 9, /* WMM */ |
231 | GFP_KERNEL); | 231 | GFP_KERNEL); |
232 | if (!skb) { | 232 | if (!skb) |
233 | printk(KERN_DEBUG "%s: failed to allocate buffer for assoc " | ||
234 | "frame\n", sdata->name); | ||
235 | return; | 233 | return; |
236 | } | 234 | |
237 | skb_reserve(skb, local->hw.extra_tx_headroom); | 235 | skb_reserve(skb, local->hw.extra_tx_headroom); |
238 | 236 | ||
239 | capab = WLAN_CAPABILITY_ESS; | 237 | capab = WLAN_CAPABILITY_ESS; |