nl80211: fix NL80211_ATTR_CHANNEL_WIDTH datatype
authorJohn Crispin <john@phrozen.org>
Tue, 25 Feb 2020 07:02:54 +0000 (08:02 +0100)
committerJohn Crispin <john@phrozen.org>
Tue, 25 Feb 2020 07:05:19 +0000 (08:05 +0100)
commit22c2d2cad7ac4ef6feb91311ed120a56f692d75e
tree028ddacb10fb62d5268856132721e8ff289fc494
parent370f51d5edac83bfdb9a078d7098f06403dfa4bc
nl80211: fix NL80211_ATTR_CHANNEL_WIDTH datatype

The original patch used u8 when sending the channel width, However that
field is actually u32. Fix this by using the correct datatype instead.

Fixes: 466b9936bf93 ("cfg80211: Add support to notify station's opmode change to userspace")
Reported-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John Crispin <john@phrozen.org>
net/wireless/nl80211.c