cfg80211: fix BSS color notify trace enum confusion
authorJohannes Berg <johannes.berg@intel.com>
Wed, 18 Aug 2021 07:20:53 +0000 (09:20 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 18 Aug 2021 07:21:52 +0000 (09:21 +0200)
The wrong enum was used here, leading to warnings.
Just use a u32 instead.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 0d2ab3aea50b ("nl80211: add support for BSS coloring")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/trace.h

index 911bb3b8969ee29e5d6c7b929c430781c0b861f6..19b78d472283497dc0a4997d0ec43e18addfee00 100644 (file)
@@ -3628,7 +3628,7 @@ TRACE_EVENT(cfg80211_bss_color_notify,
        TP_ARGS(netdev, cmd, count, color_bitmap),
        TP_STRUCT__entry(
                NETDEV_ENTRY
-               __field(enum nl80211_bss_scan_width, cmd)
+               __field(u32, cmd)
                __field(u8, count)
                __field(u64, color_bitmap)
        ),