summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAmar Singhal <asinghal@codeaurora.org>2016-11-09 13:33:33 -0800
committerqcabuildsw <qcabuildsw@localhost>2016-11-09 15:00:13 -0800
commit331a8e9e344e030ce833bea7a14c2ff5d915b1ca (patch)
treee4b7fcec370005d833a8d8dbf99110db8f4d595f /core
parent17f948931942c4a8796dd02af40ab724d2b7f939 (diff)
qcacld-3.0: Use pointer assignment instead of struct
We need to disable any channel that does not have 20 MHz bandwidth flag set. Use pointer assignment to accesss wiphy. Local copy does not work. CRs-Fixed: 1087967 Change-Id: Ia3b783046d0f08ebb039ef808e1add1dd8fd5fde
Diffstat (limited to 'core')
-rw-r--r--core/hdd/src/wlan_hdd_regulatory.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/hdd/src/wlan_hdd_regulatory.c b/core/hdd/src/wlan_hdd_regulatory.c
index daea66d98e1b..86850c6bbfe9 100644
--- a/core/hdd/src/wlan_hdd_regulatory.c
+++ b/core/hdd/src/wlan_hdd_regulatory.c
@@ -227,7 +227,7 @@ static void hdd_regulatory_wiphy_init(hdd_context_t *hdd_ctx,
{
const struct ieee80211_regdomain *reg_rules;
int chan_num;
- struct ieee80211_channel chan;
+ struct ieee80211_channel *chan;
if (hdd_is_world_regdomain(reg->reg_domain)) {
reg_rules = hdd_get_world_regrules(reg);
@@ -252,9 +252,9 @@ static void hdd_regulatory_wiphy_init(hdd_context_t *hdd_ctx,
for (chan_num = 0;
chan_num < wiphy->bands[IEEE80211_BAND_2GHZ]->n_channels;
chan_num++) {
- chan = wiphy->bands[IEEE80211_BAND_2GHZ]->channels[chan_num];
- if (chan.flags & IEEE80211_CHAN_NO_20MHZ)
- chan.flags |= IEEE80211_CHAN_DISABLED;
+ chan = &(wiphy->bands[IEEE80211_BAND_2GHZ]->channels[chan_num]);
+ if (chan->flags & IEEE80211_CHAN_NO_20MHZ)
+ chan->flags |= IEEE80211_CHAN_DISABLED;
}
/*