]> git.ipfire.org Git - thirdparty/linux.git/commit - include/net/cfg80211.h
cfg80211: fix data type of sta_opmode_info parameter
authortamizhr@codeaurora.org <tamizhr@codeaurora.org>
Tue, 27 Mar 2018 13:46:15 +0000 (19:16 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 29 Mar 2018 08:19:52 +0000 (10:19 +0200)
commit5e78abd075e562fd5748ac3bfb067941e8baf6c7
tree51a81e08c03e91350141a13f345e082b4e5f0a44
parentdcbe73ca55a42712bfd0e9966cd2d5a48355ace3
cfg80211: fix data type of sta_opmode_info parameter

Currently bw and smps_mode are u8 type value in sta_opmode_info
structure. This values filled in mac80211 from ieee80211_sta_rx_bandwidth
and ieee80211_smps_mode. These enum values are specific to mac80211 and
userspace/cfg80211 doesn't know about that. This will lead to incorrect
result/assumption by the user space application.
Change bw and smps_mode parameters to their respective enums in nl80211.

Signed-off-by: Tamizh chelvam <tamizhr@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h