iwlagn: use 6 Mbps rate for no-CCK scans
When userspace requested that a scan not be done with CCK rates, use 6 Mbps. This is used for example for P2P scanning. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
fa06ec7944
commit
3a8aea098c
|
@ -678,7 +678,8 @@ static int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
|
||||||
priv->contexts[IWL_RXON_CTX_BSS].active.flags &
|
priv->contexts[IWL_RXON_CTX_BSS].active.flags &
|
||||||
RXON_FLG_CHANNEL_MODE_MSK)
|
RXON_FLG_CHANNEL_MODE_MSK)
|
||||||
>> RXON_FLG_CHANNEL_MODE_POS;
|
>> RXON_FLG_CHANNEL_MODE_POS;
|
||||||
if (chan_mod == CHANNEL_MODE_PURE_40) {
|
if ((priv->scan_request && priv->scan_request->no_cck) ||
|
||||||
|
chan_mod == CHANNEL_MODE_PURE_40) {
|
||||||
rate = IWL_RATE_6M_PLCP;
|
rate = IWL_RATE_6M_PLCP;
|
||||||
} else {
|
} else {
|
||||||
rate = IWL_RATE_1M_PLCP;
|
rate = IWL_RATE_1M_PLCP;
|
||||||
|
|
Loading…
Reference in New Issue