]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: Pass center frequency in kHz instead of MHz
authorHaim Dreyfuss <haim.dreyfuss@intel.com>
Tue, 21 Aug 2018 06:22:20 +0000 (09:22 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 28 Aug 2018 09:41:23 +0000 (11:41 +0200)
commite3a45c57160e51a3e28b5e2cefd4124ab5aa3311
treed8a922896d3c748d69bb081d8cf05d2fb3d1661b
parentcaf5203fb2c6640055ddce93b0215327cf55cf43
nl80211: Pass center frequency in kHz instead of MHz

freq_reg_info expects to get the frequency in kHz. Instead we
accidently pass it in MHz.  Thus, currently the function always
return ERR rule. Fix that.

Fixes: 40d708c3ef5a ("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>
[fix kHz/MHz in commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c