nl80211: Fix nla_put_u8 to u16 for NL80211_WMMR_TXOP
authorHaim Dreyfuss <haim.dreyfuss@intel.com>
Tue, 21 Aug 2018 06:22:19 +0000 (09:22 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 28 Aug 2018 09:37:28 +0000 (11:37 +0200)
commitd3c89bbc7491d5e288ca2993e999d24ba9ff52ad
treeabca211f0ee3272eb039b79cb123745332e16d60
parent3a2af7cccbbaf2362db9053a946a6084e12bfa73
nl80211: Fix nla_put_u8 to u16 for NL80211_WMMR_TXOP

TXOP (also known as Channel Occupancy Time) is u16 and should be
added using nla_put_u16 instead of u8, fix that.

Fixes: 50f32718e125 ("nl80211: Add wmm rule attribute to NL80211_CMD_GET_WIPHY dump command")
Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c