diff options
Diffstat (limited to 'net/mac80211/util.c')
| -rw-r--r-- | net/mac80211/util.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 51e256c5fb78..d5230ecc784d 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
| @@ -881,6 +881,8 @@ struct sk_buff *ieee80211_build_probe_req(struct ieee80211_sub_if_data *sdata, | |||
| 881 | skb = ieee80211_probereq_get(&local->hw, &sdata->vif, | 881 | skb = ieee80211_probereq_get(&local->hw, &sdata->vif, |
| 882 | ssid, ssid_len, | 882 | ssid, ssid_len, |
| 883 | buf, buf_len); | 883 | buf, buf_len); |
| 884 | if (!skb) | ||
| 885 | goto out; | ||
| 884 | 886 | ||
| 885 | if (dst) { | 887 | if (dst) { |
| 886 | mgmt = (struct ieee80211_mgmt *) skb->data; | 888 | mgmt = (struct ieee80211_mgmt *) skb->data; |
| @@ -889,6 +891,8 @@ struct sk_buff *ieee80211_build_probe_req(struct ieee80211_sub_if_data *sdata, | |||
| 889 | } | 891 | } |
| 890 | 892 | ||
| 891 | IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT; | 893 | IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT; |
| 894 | |||
| 895 | out: | ||
| 892 | kfree(buf); | 896 | kfree(buf); |
| 893 | 897 | ||
| 894 | return skb; | 898 | return skb; |
| @@ -1035,7 +1039,6 @@ int ieee80211_reconfig(struct ieee80211_local *local) | |||
| 1035 | struct ieee80211_sub_if_data, | 1039 | struct ieee80211_sub_if_data, |
| 1036 | u.ap); | 1040 | u.ap); |
| 1037 | 1041 | ||
| 1038 | memset(&sta->sta.drv_priv, 0, hw->sta_data_size); | ||
| 1039 | WARN_ON(drv_sta_add(local, sdata, &sta->sta)); | 1042 | WARN_ON(drv_sta_add(local, sdata, &sta->sta)); |
| 1040 | } | 1043 | } |
| 1041 | } | 1044 | } |
