aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2010-10-20 13:18:53 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-11-15 13:24:08 -0500
commit7ca43d03b1291481bdf894bbaec5d580e7684e7d (patch)
tree34ad4d5b915b760ccedce956e50cf3aa5300ebc9 /net/wireless
parent2e48928d8a0f38c1b5c81eb3f1294de8a6382c68 (diff)
cfg80211: pass the reg hint initiator to helpers
This is required later. Cc: Easwar Krishnan <easwar.krishnan@atheros.com> Cc: stable@kernel.org signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/reg.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 4b9f8912526c..b64596fe7363 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -720,7 +720,9 @@ EXPORT_SYMBOL(freq_reg_info);
720 * on the wiphy with the target_bw specified. Then we can simply use 720 * on the wiphy with the target_bw specified. Then we can simply use
721 * that below for the desired_bw_khz below. 721 * that below for the desired_bw_khz below.
722 */ 722 */
723static void handle_channel(struct wiphy *wiphy, enum ieee80211_band band, 723static void handle_channel(struct wiphy *wiphy,
724 enum nl80211_reg_initiator initiator,
725 enum ieee80211_band band,
724 unsigned int chan_idx) 726 unsigned int chan_idx)
725{ 727{
726 int r; 728 int r;
@@ -784,7 +786,9 @@ static void handle_channel(struct wiphy *wiphy, enum ieee80211_band band,
784 chan->max_power = (int) MBM_TO_DBM(power_rule->max_eirp); 786 chan->max_power = (int) MBM_TO_DBM(power_rule->max_eirp);
785} 787}
786 788
787static void handle_band(struct wiphy *wiphy, enum ieee80211_band band) 789static void handle_band(struct wiphy *wiphy,
790 enum ieee80211_band band,
791 enum nl80211_reg_initiator initiator)
788{ 792{
789 unsigned int i; 793 unsigned int i;
790 struct ieee80211_supported_band *sband; 794 struct ieee80211_supported_band *sband;
@@ -793,7 +797,7 @@ static void handle_band(struct wiphy *wiphy, enum ieee80211_band band)
793 sband = wiphy->bands[band]; 797 sband = wiphy->bands[band];
794 798
795 for (i = 0; i < sband->n_channels; i++) 799 for (i = 0; i < sband->n_channels; i++)
796 handle_channel(wiphy, band, i); 800 handle_channel(wiphy, initiator, band, i);
797} 801}
798 802
799static bool ignore_reg_update(struct wiphy *wiphy, 803static bool ignore_reg_update(struct wiphy *wiphy,
@@ -1030,7 +1034,7 @@ void wiphy_update_regulatory(struct wiphy *wiphy,
1030 goto out; 1034 goto out;
1031 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { 1035 for (band = 0; band < IEEE80211_NUM_BANDS; band++) {
1032 if (wiphy->bands[band]) 1036 if (wiphy->bands[band])
1033 handle_band(wiphy, band); 1037 handle_band(wiphy, band, initiator);
1034 } 1038 }
1035out: 1039out:
1036 reg_process_beacons(wiphy); 1040 reg_process_beacons(wiphy);