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>
Showing
- include/linux/ieee80211.h 2 additions, 0 deletionsinclude/linux/ieee80211.h
- include/net/cfg80211.h 49 additions, 5 deletionsinclude/net/cfg80211.h
- net/mac80211/rx.c 7 additions, 5 deletionsnet/mac80211/rx.c
- net/wireless/mlme.c 3 additions, 3 deletionsnet/wireless/mlme.c
- net/wireless/nl80211.c 6 additions, 6 deletionsnet/wireless/nl80211.c
- net/wireless/trace.h 4 additions, 4 deletionsnet/wireless/trace.h
Loading
Please register or sign in to comment