diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 69b322f6ca2ea9af7381296c89e415b2bfaf5c4b..929f897a8deda8c913a368d394c728a1d86da50c 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);