aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorMichal Sojka <sojkam1@fel.cvut.cz>2015-11-23 13:27:14 -0500
committerJohannes Berg <johannes.berg@intel.com>2015-12-04 08:43:32 -0500
commit491728746b500b22f384cb1d0aba76f7c55a9269 (patch)
tree69b62e177acb460d1198cd5ce04308aded28c26b /net/wireless
parentef044763a3ca6b9e0bb65a9ce0cb38c0eca62756 (diff)
cfg80211: reg: Remove unused function parameter
Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/reg.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 2e8d6f39ed56..43b3e577b2ea 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -1052,7 +1052,7 @@ static u32 map_regdom_flags(u32 rd_flags)
1052} 1052}
1053 1053
1054static const struct ieee80211_reg_rule * 1054static const struct ieee80211_reg_rule *
1055freq_reg_info_regd(struct wiphy *wiphy, u32 center_freq, 1055freq_reg_info_regd(u32 center_freq,
1056 const struct ieee80211_regdomain *regd, u32 bw) 1056 const struct ieee80211_regdomain *regd, u32 bw)
1057{ 1057{
1058 int i; 1058 int i;
@@ -1097,7 +1097,7 @@ __freq_reg_info(struct wiphy *wiphy, u32 center_freq, u32 min_bw)
1097 u32 bw; 1097 u32 bw;
1098 1098
1099 for (bw = MHZ_TO_KHZ(20); bw >= min_bw; bw = bw / 2) { 1099 for (bw = MHZ_TO_KHZ(20); bw >= min_bw; bw = bw / 2) {
1100 reg_rule = freq_reg_info_regd(wiphy, center_freq, regd, bw); 1100 reg_rule = freq_reg_info_regd(center_freq, regd, bw);
1101 if (!IS_ERR(reg_rule)) 1101 if (!IS_ERR(reg_rule))
1102 return reg_rule; 1102 return reg_rule;
1103 } 1103 }
@@ -1765,8 +1765,7 @@ static void handle_channel_custom(struct wiphy *wiphy,
1765 u32 bw; 1765 u32 bw;
1766 1766
1767 for (bw = MHZ_TO_KHZ(20); bw >= MHZ_TO_KHZ(5); bw = bw / 2) { 1767 for (bw = MHZ_TO_KHZ(20); bw >= MHZ_TO_KHZ(5); bw = bw / 2) {
1768 reg_rule = freq_reg_info_regd(wiphy, 1768 reg_rule = freq_reg_info_regd(MHZ_TO_KHZ(chan->center_freq),
1769 MHZ_TO_KHZ(chan->center_freq),
1770 regd, bw); 1769 regd, bw);
1771 if (!IS_ERR(reg_rule)) 1770 if (!IS_ERR(reg_rule))
1772 break; 1771 break;