Skip to content

Commit aba4e6f

Browse files
Sujith Manoharanjmberg-intel
authored andcommitted
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>
1 parent 06d7de8 commit aba4e6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/mac80211/cfg.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ static int ieee80211_set_probe_resp(struct ieee80211_sub_if_data *sdata,
740740
struct probe_resp *new, *old;
741741

742742
if (!resp || !resp_len)
743-
return -EINVAL;
743+
return 1;
744744

745745
old = rtnl_dereference(sdata->u.ap.probe_resp);
746746

0 commit comments

Comments
 (0)