Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aba4e6ff authored by Sujith Manoharan's avatar Sujith Manoharan Committed by Johannes Berg
Browse files

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: default avatarSujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 06d7de83
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);