]> git.ipfire.org Git - thirdparty/iw.git/commit
iw: use correct type in policy check for mesh
authorMarkus Theil <markus.theil@tu-ilmenau.de>
Sat, 5 Dec 2020 09:26:15 +0000 (10:26 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Dec 2020 12:06:09 +0000 (13:06 +0100)
commit0ba98b9041e4e0f41ee72fa0fce9c43f8c6f2db3
tree95afe41f04ec645c2185cfab9b39faa2738d9e03
parent9e38deec35fc4af87adb8a96b4afd49340b1e826
iw: use correct type in policy check for mesh

NL80211_STA_INFO_CONNECTED_TO_AS and NL80211_STA_INFO_CONNECTED_TO_GATE
are defined as u8 in kernel, but were checked against NLA_FLAG.

This fixes:

root@openwrt:~# iw dev wlan0-mesh station
failed to parse nested attributes!
failed to parse nested attributes!
failed to parse nested attributes!

Reported-by: Marc Rantanen <marc@eciceron.se>
Tested-by: Marc Rantanen <marc@eciceron.se>
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
Link: https://lore.kernel.org/r/20201205092615.131561-1-markus.theil@tu-ilmenau.de
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
station.c