9de31c0bdb537b03db2fd326d6be43bfcbdd2541

wlan_hdd_cfg80211_set_txpower() currently expects the input power to be in units of dBm. However cfg80211 specifies the set_tx_power() method will pass the power in mBm, and that to get dBm the driver should use MBM_TO_DBM(). The userspace tool "iw" also expects the power to be in mBm. In order to comply with the definition of cfg80211, change the implementation of wlan_hdd_cfg80211_set_txpower() to expect the power in mBm and use MBM_TO_DBM() to convert the power to dBm. But for backward compatibility with userspace entities which are expecting the current implementation, if the converted power is 0 then assume the input power is already in dBm and use it without conversion. Change-Id: I7c64f7ac14249a307357c91f8bea4dad8d59ff28 CRs-Fixed: 2331003
This is CNSS WLAN Host Driver for products starting from iHelium
Opis
Languages
C
98.7%
C++
0.9%
Makefile
0.3%
Starlark
0.1%