aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vasanth@atheros.com>2009-01-09 07:44:15 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 16:00:15 -0500
commita8302de934b5d1897ff146cd0c7ab87d1417c092 (patch)
tree5a73ad4dd787cc02e14aa8975d267adb5812d8fe /net/mac80211/ieee80211_i.h
parent01f8162a854df7f9c259c839ad3c1168ac13b7b8 (diff)
mac80211: Handle power constraint level advertised in 11d+h beacon
This patch uses power constraint level while determining the maximum transmit power, there by it makes sure that any power mitigation requirement for the channel in the current regulatory domain is met. Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 9112c5247c35..c9ffadb55d36 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -715,6 +715,7 @@ struct ieee80211_local {
715 struct timer_list dynamic_ps_timer; 715 struct timer_list dynamic_ps_timer;
716 716
717 int user_power_level; /* in dBm */ 717 int user_power_level; /* in dBm */
718 int power_constr_level; /* in dBm */
718 719
719#ifdef CONFIG_MAC80211_DEBUGFS 720#ifdef CONFIG_MAC80211_DEBUGFS
720 struct local_debugfsdentries { 721 struct local_debugfsdentries {
@@ -985,6 +986,9 @@ void ieee80211_chswitch_work(struct work_struct *work);
985void ieee80211_process_chanswitch(struct ieee80211_sub_if_data *sdata, 986void ieee80211_process_chanswitch(struct ieee80211_sub_if_data *sdata,
986 struct ieee80211_channel_sw_ie *sw_elem, 987 struct ieee80211_channel_sw_ie *sw_elem,
987 struct ieee80211_bss *bss); 988 struct ieee80211_bss *bss);
989void ieee80211_handle_pwr_constr(struct ieee80211_sub_if_data *sdata,
990 u16 capab_info, u8 *pwr_constr_elem,
991 u8 pwr_constr_elem_len);
988 992
989/* utility functions/constants */ 993/* utility functions/constants */
990extern void *mac80211_wiphy_privid; /* for wiphy privid */ 994extern void *mac80211_wiphy_privid; /* for wiphy privid */