Skip to content

Commit e91e843

Browse files
committed
Correct the terminology for dBm and mBm
In Linux source files, the correct terminologya is mBm rather than mdBm. In traditional measurements, 'm' usually represents 10 to the power of negative three. However, 1 dBm equals 100 mBm, so using mdBm could be misleading.
1 parent 9ed8df0 commit e91e843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vwifi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,7 +1852,7 @@ static int vwifi_set_tx_power(struct wiphy *wiphy,
18521852
struct vwifi_vif *vif = wdev_get_vwifi_vif(wdev);
18531853
if (mutex_lock_interruptible(&vif->lock))
18541854
return -ERESTARTSYS;
1855-
/* 1 DBM = 100 MBM */
1855+
/* 1 dBm = 100 mBm */
18561856
vif->tx_power = MBM_TO_DBM(mbm);
18571857
mutex_unlock(&vif->lock);
18581858
return 0;
@@ -2074,7 +2074,7 @@ static struct wiphy *vwifi_cfg80211_add(void)
20742074
/* Signal type
20752075
* CFG80211_SIGNAL_TYPE_UNSPEC allows us specify signal strength from 0 to
20762076
* 100. The reasonable value for CFG80211_SIGNAL_TYPE_MBM is -3000 to -10000
2077-
* (mdBm).
2077+
* (mBm).
20782078
*/
20792079
wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM;
20802080

0 commit comments

Comments
 (0)