Skip to content

Commit 27f8f10

Browse files
jhovoldjmberg-intel
authored andcommitted
wifi: mac80211: fix mlme_link_id_dbg()
Make sure that the new mlme_link_id_dbg() macro honours CONFIG_MAC80211_MLME_DEBUG as intended to avoid spamming the log with messages like: wlan0: no EHT support, limiting to HE wlan0: determined local STA to be HE, BW limited to 160 MHz wlan0: determined AP xx:xx:xx:xx:xx:xx to be VHT wlan0: connecting with VHT mode, max bandwidth 160 MHz Fixes: 310c838 ("wifi: mac80211: clean up connection process") Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Link: https://msgid.link/20240325085948.26203-1-johan+linaro@kernel.org Tested-by: Kalle Valo <kvalo@kernel.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 10b890e commit 27f8f10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/mac80211/debug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ do { \
158158
_sdata_dbg(print, sdata, "[link %d] " fmt, \
159159
link_id, ##__VA_ARGS__); \
160160
else \
161-
_sdata_dbg(1, sdata, fmt, ##__VA_ARGS__); \
161+
_sdata_dbg(print, sdata, fmt, ##__VA_ARGS__); \
162162
} while (0)
163163
#define link_dbg(link, fmt, ...) \
164164
_link_id_dbg(1, (link)->sdata, (link)->link_id, \

0 commit comments

Comments
 (0)