iwlwifi: fix dual-mode scanning
The recent scanning code shuffle accidentally moved the SCAN_HW bit setting _after_ the PAN parameters are modified, which means that they don't take the scan into account -- fix that. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
This commit is contained in:
committed by
Wey-Yi Guy
parent
a313f3839e
commit
1cf2637360
@@ -1565,13 +1565,15 @@ int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
|
|||||||
cmd.data = scan;
|
cmd.data = scan;
|
||||||
scan->len = cpu_to_le16(cmd.len);
|
scan->len = cpu_to_le16(cmd.len);
|
||||||
|
|
||||||
|
/* set scan bit here for PAN params */
|
||||||
|
set_bit(STATUS_SCAN_HW, &priv->status);
|
||||||
|
|
||||||
if (priv->cfg->ops->hcmd->set_pan_params) {
|
if (priv->cfg->ops->hcmd->set_pan_params) {
|
||||||
ret = priv->cfg->ops->hcmd->set_pan_params(priv);
|
ret = priv->cfg->ops->hcmd->set_pan_params(priv);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
set_bit(STATUS_SCAN_HW, &priv->status);
|
|
||||||
ret = iwl_send_cmd_sync(priv, &cmd);
|
ret = iwl_send_cmd_sync(priv, &cmd);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
clear_bit(STATUS_SCAN_HW, &priv->status);
|
clear_bit(STATUS_SCAN_HW, &priv->status);
|
||||||
|
Reference in New Issue
Block a user