1 From a1e91ef92392e5da15a1a16f8545ede2c02f7049 Mon Sep 17 00:00:00 2001
2 From: Johannes Berg <johannes.berg@intel.com>
3 Date: Wed, 1 Mar 2023 12:09:24 +0200
4 Subject: [PATCH] wifi: mac80211: warn only once on AP probe
6 We should perhaps support this API for MLO, but it's not
7 clear that it makes sense, in any case then we'd have to
8 update it to probe the correct BSS.
10 For now, if it happens, warn only once so that we don't
11 get flooded with messages if the driver misbehaves and
14 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
15 Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
16 Link: https://lore.kernel.org/r/20230301115906.1c8499b6fbe6.I1a76a2be3b42ff93904870ac069f0319507adc23@changeid
17 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
19 net/mac80211/mlme.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
22 --- a/net/mac80211/mlme.c
23 +++ b/net/mac80211/mlme.c
24 @@ -3233,7 +3233,7 @@ static void ieee80211_mgd_probe_ap(struc
25 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
28 - if (WARN_ON(sdata->vif.valid_links))
29 + if (WARN_ON_ONCE(sdata->vif.valid_links))
32 if (!ieee80211_sdata_running(sdata))