aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/scan.c
diff options
context:
space:
mode:
authorKarl Beldan <karl.beldan@rivierawaves.com>2013-03-25 11:26:57 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-03-25 14:19:35 -0400
commit675a0b049abf6edf30f8dd84c5610b6edc2296c8 (patch)
tree164178c576642dc1ec8ae70d9e26a5ec33472d26 /net/mac80211/scan.c
parent219c38674c262378ec411dd8318ebfd199fbce8d (diff)
mac80211: Use a cfg80211_chan_def in ieee80211_hw_conf_chan
Drivers that don't use chanctxes cannot perform VHT association because they still use a "backward compatibility" pair of {ieee80211_channel, nl80211_channel_type} in ieee80211_conf and ieee80211_local. Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com> [fix kernel-doc] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/scan.c')
-rw-r--r--net/mac80211/scan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index cb34cbbaa20c..581764f92e13 100644
--- a/net/mac80211/scan.c
+++ b/net/mac80211/scan.c
@@ -384,7 +384,7 @@ static void ieee80211_scan_state_send_probe(struct ieee80211_local *local,
384{ 384{
385 int i; 385 int i;
386 struct ieee80211_sub_if_data *sdata; 386 struct ieee80211_sub_if_data *sdata;
387 enum ieee80211_band band = local->hw.conf.channel->band; 387 enum ieee80211_band band = local->hw.conf.chandef.chan->band;
388 u32 tx_flags; 388 u32 tx_flags;
389 389
390 tx_flags = IEEE80211_TX_INTFL_OFFCHAN_TX_OK; 390 tx_flags = IEEE80211_TX_INTFL_OFFCHAN_TX_OK;
@@ -401,7 +401,7 @@ static void ieee80211_scan_state_send_probe(struct ieee80211_local *local,
401 local->scan_req->ssids[i].ssid_len, 401 local->scan_req->ssids[i].ssid_len,
402 local->scan_req->ie, local->scan_req->ie_len, 402 local->scan_req->ie, local->scan_req->ie_len,
403 local->scan_req->rates[band], false, 403 local->scan_req->rates[band], false,
404 tx_flags, local->hw.conf.channel, true); 404 tx_flags, local->hw.conf.chandef.chan, true);
405 405
406 /* 406 /*
407 * After sending probe requests, wait for probe responses 407 * After sending probe requests, wait for probe responses
@@ -467,7 +467,7 @@ static int __ieee80211_start_scan(struct ieee80211_sub_if_data *sdata,
467 if (local->ops->hw_scan) { 467 if (local->ops->hw_scan) {
468 __set_bit(SCAN_HW_SCANNING, &local->scanning); 468 __set_bit(SCAN_HW_SCANNING, &local->scanning);
469 } else if ((req->n_channels == 1) && 469 } else if ((req->n_channels == 1) &&
470 (req->channels[0] == local->_oper_channel)) { 470 (req->channels[0] == local->_oper_chandef.chan)) {
471 /* 471 /*
472 * If we are scanning only on the operating channel 472 * If we are scanning only on the operating channel
473 * then we do not need to stop normal activities 473 * then we do not need to stop normal activities