aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2012-08-22 04:51:07 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-08-22 04:55:04 -0400
commitaba4e6fff8de0c92e53f0e7ef077231e75f7d760 (patch)
tree9bcf0ea5ac574a76eaff216179237819930a19e3 /net/mac80211
parent06d7de831dab8b93adb86e039a2f3d36604a9197 (diff)
mac80211: Fix AP mode regression
Commit mac80211: avoid using synchronize_rcu in ieee80211_set_probe_resp changed the return value when the probe response template is not present. Revert to the earlier value of 1 - this fixes AP mode for drivers like ath9k. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 69b322f6ca2e..929f897a8ded 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -740,7 +740,7 @@ static int ieee80211_set_probe_resp(struct ieee80211_sub_if_data *sdata,
740 struct probe_resp *new, *old; 740 struct probe_resp *new, *old;
741 741
742 if (!resp || !resp_len) 742 if (!resp || !resp_len)
743 return -EINVAL; 743 return 1;
744 744
745 old = rtnl_dereference(sdata->u.ap.probe_resp); 745 old = rtnl_dereference(sdata->u.ap.probe_resp);
746 746