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: 2.1b_release~2236 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af3e01e3d26d95ff3a9fa18cb83759074ce98a8f;p=kernel%2Fkernel-mfld-blackbay.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 0f01310..526ba47 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);