aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nl80211.h
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2010-06-23 05:12:37 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-06-24 15:42:33 -0400
commitfa61cf70a6ae1089e459e4b59b2e8d8e90d8535e (patch)
tree1bd81709faaa15fb207de7db4df1ceed96374208 /include/linux/nl80211.h
parenta185045c8da1ec6627236b4ade0d949b15da43b3 (diff)
cfg80211/mac80211: Update set_tx_power to use mBm instead of dBm units
In preparation for a TX power setting interface in the nl80211, change the .set_tx_power function to use mBm units instead of dBm for greater accuracy and smaller power levels. Also, already in advance move the tx_power_setting enumeration to nl80211. This change affects the .tx_set_power function prototype. As a result, the corresponding changes are needed to modules using it. These are mac80211, iwmc3200wifi and rndis_wlan. Cc: Samuel Ortiz <samuel.ortiz@intel.com> Cc: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Acked-by: Samuel Ortiz <samuel.ortiz@intel.com> Acked-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/nl80211.h')
-rw-r--r--include/linux/nl80211.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index 64fb32b93a28..07aa04693f94 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -1659,4 +1659,17 @@ enum nl80211_cqm_rssi_threshold_event {
1659 NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH, 1659 NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH,
1660}; 1660};
1661 1661
1662
1663/**
1664 * enum nl80211_tx_power_setting - TX power adjustment
1665 * @NL80211_TX_POWER_AUTOMATIC: automatically determine transmit power
1666 * @NL80211_TX_POWER_LIMITED: limit TX power by the mBm parameter
1667 * @NL80211_TX_POWER_FIXED: fix TX power to the mBm parameter
1668 */
1669enum nl80211_tx_power_setting {
1670 NL80211_TX_POWER_AUTOMATIC,
1671 NL80211_TX_POWER_LIMITED,
1672 NL80211_TX_POWER_FIXED,
1673};
1674
1662#endif /* __LINUX_NL80211_H */ 1675#endif /* __LINUX_NL80211_H */