You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit introduces 'tx_power' to the virtual interface to specify
the device's transmit power level. It also adds vwifi_set_tx_power()
and vwifi_get_tx_power() to align with 'set_tx_power' and 'get_tx_power'
in cfg80211_ops, respectively. The vwifi_set_tx_power() enables the
setting of the device's transmit power, whereas vwifi_get_tx_power()
facilitates the retrieval of this information.
Users can adjust the transmit power by employing the command:
iw dev [interface] set txpower auto/limit/fixed [transmit power (mBm)]
auto: Use default transmit power
limit: Restrict power limits to a specific value
fixed: Set power freely
Since using the above command results in the 'wdev' parameter NULL,
a new function 'wiphy_get_vwifi_vif' was added to obtain the virtual
interface. Additionally, the 'type' parameter is used to distinguish
between "auto/limit/fixed".
This commit also modifies the comments regarding mBm.
In Linux source files, the correct terminology 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.
0 commit comments