]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: add KHz variants of frame RX API
authorThomas Pedersen <thomas@adapt-ip.com>
Thu, 30 Apr 2020 17:25:50 +0000 (10:25 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 27 May 2020 08:02:02 +0000 (10:02 +0200)
commit9390b11efc3eaaa2b03f143ffd005312557efadc
tree6e2e2d3009975e24712b869b525aa678d6e51582
parent5cc73e2c2795c20f8e6209c2eaeb63e6cf137dca
cfg80211: add KHz variants of frame RX API

Drivers may wish to report the RX frequency in units of
KHz. Provide cfg80211_rx_mgmt_khz() and wrap it with
cfg80211_rx_mgmt() so exisiting drivers which can't report
KHz anyway don't need to change. Add a similar wrapper for
cfg80211_report_obss_beacon() so the frequency units stay
somewhat consistent.

This doesn't actually change the nl80211 API yet.

Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com>
Link: https://lore.kernel.org/r/20200430172554.18383-2-thomas@adapt-ip.com
[fix mac80211 calling the non-khz version of obss beacon report,
 drop trace point name changes]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/ieee80211.h
include/net/cfg80211.h
net/mac80211/rx.c
net/wireless/mlme.c
net/wireless/nl80211.c
net/wireless/trace.h