diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/cfg80211.c')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/cfg80211.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index df95e0d9d708..dd07ae560785 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c | |||
@@ -941,6 +941,8 @@ static int ath6kl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev, | |||
941 | if (test_bit(CONNECTED, &vif->flags)) | 941 | if (test_bit(CONNECTED, &vif->flags)) |
942 | force_fg_scan = 1; | 942 | force_fg_scan = 1; |
943 | 943 | ||
944 | vif->scan_req = request; | ||
945 | |||
944 | if (test_bit(ATH6KL_FW_CAPABILITY_STA_P2PDEV_DUPLEX, | 946 | if (test_bit(ATH6KL_FW_CAPABILITY_STA_P2PDEV_DUPLEX, |
945 | ar->fw_capabilities)) { | 947 | ar->fw_capabilities)) { |
946 | /* | 948 | /* |
@@ -963,10 +965,10 @@ static int ath6kl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev, | |||
963 | ATH6KL_FG_SCAN_INTERVAL, | 965 | ATH6KL_FG_SCAN_INTERVAL, |
964 | n_channels, channels); | 966 | n_channels, channels); |
965 | } | 967 | } |
966 | if (ret) | 968 | if (ret) { |
967 | ath6kl_err("wmi_startscan_cmd failed\n"); | 969 | ath6kl_err("wmi_startscan_cmd failed\n"); |
968 | else | 970 | vif->scan_req = NULL; |
969 | vif->scan_req = request; | 971 | } |
970 | 972 | ||
971 | kfree(channels); | 973 | kfree(channels); |
972 | 974 | ||