diff options
Diffstat (limited to 'net/mac80211/work.c')
| -rw-r--r-- | net/mac80211/work.c | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/net/mac80211/work.c b/net/mac80211/work.c index 380b9a7462b..bac34394c05 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,  			wk->ie_len + /* extra IEs */  			9, /* WMM */  			GFP_KERNEL); -	if (!skb) { -		printk(KERN_DEBUG "%s: failed to allocate buffer for assoc " -		       "frame\n", sdata->name); +	if (!skb)  		return; -	} +  	skb_reserve(skb, local->hw.extra_tx_headroom);  	capab = WLAN_CAPABILITY_ESS;  |