]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6a0874cc3b20b2980060b7f9b5fc30069567fc56
tree51a81e08c03e91350141a13f345e082b4e5f0a44
parent01bebfe09e90a7b80306f575733373fe53a7b2a7
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