From: Dmitry Shmidt Date: Wed, 26 Oct 2011 19:22:25 +0000 (-0700) Subject: net: wireless: bcmdhd: Adjust scan parameters for wl_cfg80211_connect() X-Git-Tag: firefly_0821_release~7613^2~248 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=019c9a9d40f321b4def44b2669ca7511604e5b06;p=firefly-linux-kernel-4.4.55.git net: wireless: bcmdhd: Adjust scan parameters for wl_cfg80211_connect() Signed-off-by: Dmitry Shmidt --- diff --git a/drivers/net/wireless/bcmdhd/wl_cfg80211.c b/drivers/net/wireless/bcmdhd/wl_cfg80211.c index 0f01310f9688..526ba47895bc 100644 --- a/drivers/net/wireless/bcmdhd/wl_cfg80211.c +++ b/drivers/net/wireless/bcmdhd/wl_cfg80211.c @@ -2256,15 +2256,13 @@ wl_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev, memcpy(&ext_join_params->ssid.SSID, sme->ssid, ext_join_params->ssid.SSID_len); ext_join_params->ssid.SSID_len = htod32(ext_join_params->ssid.SSID_len); /* Set up join scan parameters */ - ext_join_params->scan.scan_type = DOT11_SCANTYPE_ACTIVE; + ext_join_params->scan.scan_type = -1; ext_join_params->scan.nprobes = 2; /* increate dwell time to receive probe response * from target AP at a noisy air */ - if (chan_cnt) - ext_join_params->scan.active_time = 150; - else - ext_join_params->scan.active_time = -1; + ext_join_params->scan.active_time = 150; + ext_join_params->scan.passive_time = 300; ext_join_params->scan.home_time = -1; if (sme->bssid) memcpy(&ext_join_params->assoc.bssid, sme->bssid, ETH_ALEN);