]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.19.7/mac80211-send-ap-probe-as-unicast-again.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.19.7 / mac80211-send-ap-probe-as-unicast-again.patch
1 From a73f8e21f3f93159bc19e154e8f50891c22c11db Mon Sep 17 00:00:00 2001
2 From: Johannes Berg <johannes.berg@intel.com>
3 Date: Sat, 21 Mar 2015 07:41:04 +0100
4 Subject: mac80211: send AP probe as unicast again
5
6 From: Johannes Berg <johannes.berg@intel.com>
7
8 commit a73f8e21f3f93159bc19e154e8f50891c22c11db upstream.
9
10 Louis reported that a static checker was complaining that
11 the 'dst' variable was set (multiple times) but not used.
12 This is due to a previous commit having removed the usage
13 (apparently erroneously), so add it back.
14
15 Fixes: a344d6778a98 ("mac80211: allow drivers to support NL80211_SCAN_FLAG_RANDOM_ADDR")
16 Reported-by: Louis Langholtz <lou_langholtz@me.com>
17 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19
20 ---
21 net/mac80211/mlme.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24 --- a/net/mac80211/mlme.c
25 +++ b/net/mac80211/mlme.c
26 @@ -2231,7 +2231,7 @@ static void ieee80211_mgd_probe_ap_send(
27 else
28 ssid_len = ssid[1];
29
30 - ieee80211_send_probe_req(sdata, sdata->vif.addr, NULL,
31 + ieee80211_send_probe_req(sdata, sdata->vif.addr, dst,
32 ssid + 2, ssid_len, NULL,
33 0, (u32) -1, true, 0,
34 ifmgd->associated->channel, false);