Skip to content

Commit

Permalink
mac80211: Fix AP mode regression
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sujith Manoharan authored and Johannes Berg committed Aug 22, 2012
1 parent 06d7de8 commit aba4e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit aba4e6f

Please sign in to comment.