aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/mlme.c
diff options
context:
space:
mode:
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>2017-11-09 06:46:30 -0500
committerJohannes Berg <johannes.berg@intel.com>2017-12-11 06:19:31 -0500
commit6c2fb1e6527b1092e09c786fee66b1759fa9d574 (patch)
tree2c99129bf8b221fe2db4374db395c740c1593d63 /net/wireless/mlme.c
parent9ae3b172e886c851d8cd6a88569025160b485e95 (diff)
cfg80211: cleanup signal strength units notation
Both cfg80211_rx_mgmt and cfg80211_report_obss_beacon functions send reports to userspace using NL80211_ATTR_RX_SIGNAL_DBM attribute w/o any processing of their input signal values. Which means that in order to match userspace tools expectations, input signal values for those functions are supposed to be in dBm units. This patch cleans up comments, variable names, and trace reports for those functions, replacing confusing 'mBm' by 'dBm'. Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/mlme.c')
-rw-r--r--net/wireless/mlme.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c
index e7c64a8dce54..bbb9907bfa86 100644
--- a/net/wireless/mlme.c
+++ b/net/wireless/mlme.c
@@ -692,7 +692,7 @@ int cfg80211_mlme_mgmt_tx(struct cfg80211_registered_device *rdev,
692 return rdev_mgmt_tx(rdev, wdev, params, cookie); 692 return rdev_mgmt_tx(rdev, wdev, params, cookie);
693} 693}
694 694
695bool cfg80211_rx_mgmt(struct wireless_dev *wdev, int freq, int sig_mbm, 695bool cfg80211_rx_mgmt(struct wireless_dev *wdev, int freq, int sig_dbm,
696 const u8 *buf, size_t len, u32 flags) 696 const u8 *buf, size_t len, u32 flags)
697{ 697{
698 struct wiphy *wiphy = wdev->wiphy; 698 struct wiphy *wiphy = wdev->wiphy;
@@ -708,7 +708,7 @@ bool cfg80211_rx_mgmt(struct wireless_dev *wdev, int freq, int sig_mbm,
708 cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE); 708 cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE);
709 u16 stype; 709 u16 stype;
710 710
711 trace_cfg80211_rx_mgmt(wdev, freq, sig_mbm); 711 trace_cfg80211_rx_mgmt(wdev, freq, sig_dbm);
712 stype = (le16_to_cpu(mgmt->frame_control) & IEEE80211_FCTL_STYPE) >> 4; 712 stype = (le16_to_cpu(mgmt->frame_control) & IEEE80211_FCTL_STYPE) >> 4;
713 713
714 if (!(stypes->rx & BIT(stype))) { 714 if (!(stypes->rx & BIT(stype))) {
@@ -735,7 +735,7 @@ bool cfg80211_rx_mgmt(struct wireless_dev *wdev, int freq, int sig_mbm,
735 735
736 /* Indicate the received Action frame to user space */ 736 /* Indicate the received Action frame to user space */
737 if (nl80211_send_mgmt(rdev, wdev, reg->nlportid, 737 if (nl80211_send_mgmt(rdev, wdev, reg->nlportid,
738 freq, sig_mbm, 738 freq, sig_dbm,
739 buf, len, flags, GFP_ATOMIC)) 739 buf, len, flags, GFP_ATOMIC))
740 continue; 740 continue;
741 741