diff options
Diffstat (limited to 'drivers/net/wireless/mwifiex/cfg80211.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/cfg80211.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index cf97c2aec8b4..bb06d2e3274a 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c | |||
@@ -260,13 +260,13 @@ static int mwifiex_send_domain_info_cmd_fw(struct wiphy *wiphy) | |||
260 | flag = 1; | 260 | flag = 1; |
261 | first_chan = (u32) ch->hw_value; | 261 | first_chan = (u32) ch->hw_value; |
262 | next_chan = first_chan; | 262 | next_chan = first_chan; |
263 | max_pwr = ch->max_power; | 263 | max_pwr = ch->max_reg_power; |
264 | no_of_parsed_chan = 1; | 264 | no_of_parsed_chan = 1; |
265 | continue; | 265 | continue; |
266 | } | 266 | } |
267 | 267 | ||
268 | if (ch->hw_value == next_chan + 1 && | 268 | if (ch->hw_value == next_chan + 1 && |
269 | ch->max_power == max_pwr) { | 269 | ch->max_reg_power == max_pwr) { |
270 | next_chan++; | 270 | next_chan++; |
271 | no_of_parsed_chan++; | 271 | no_of_parsed_chan++; |
272 | } else { | 272 | } else { |
@@ -277,7 +277,7 @@ static int mwifiex_send_domain_info_cmd_fw(struct wiphy *wiphy) | |||
277 | no_of_triplet++; | 277 | no_of_triplet++; |
278 | first_chan = (u32) ch->hw_value; | 278 | first_chan = (u32) ch->hw_value; |
279 | next_chan = first_chan; | 279 | next_chan = first_chan; |
280 | max_pwr = ch->max_power; | 280 | max_pwr = ch->max_reg_power; |
281 | no_of_parsed_chan = 1; | 281 | no_of_parsed_chan = 1; |
282 | } | 282 | } |
283 | } | 283 | } |