aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c11
1 files changed, 3 insertions, 8 deletions
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