From: Sujith Manoharan Date: Wed, 22 Aug 2012 08:51:07 +0000 (+0530) Subject: mac80211: Fix AP mode regression X-Git-Tag: upstream/snapshot3+hdmi~6565^2~30^2~48^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aba4e6fff8de0c92e53f0e7ef077231e75f7d760;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 69b322f..929f897 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, struct probe_resp *new, *old; if (!resp || !resp_len) - return -EINVAL; + return 1; old = rtnl_dereference(sdata->u.ap.probe_resp);