diff options
author | Bartosz Markowski <bartosz.markowski@tieto.com> | 2012-02-29 15:14:23 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 11:06:38 +0200 |
commit | 00ec8f311ab77b5caf470e034cda26aea50f4b6d (patch) | |
tree | dcdcaf2c047d6b22326f488a8fe8f9e2f1de0f59 | |
parent | 8702004a664d4fd01d3626b59717a2a0198cdeee (diff) |
cw1200: Force background scan
Set 'forced background scan' bit in scan flags.
If station cannot enter PS mode, it will be
forced to perform background scan and the same send
probe requests.
ST-Ericsson ID: 361264
Change-Id: I186a09958934b8c1286748a373a0ec067fc00bc5
Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35197
Reviewed-by: QABUILD
-rw-r--r-- | drivers/staging/cw1200/scan.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/staging/cw1200/scan.c b/drivers/staging/cw1200/scan.c index 391fab8c2dc..e939e62bc95 100644 --- a/drivers/staging/cw1200/scan.c +++ b/drivers/staging/cw1200/scan.c @@ -213,8 +213,10 @@ void cw1200_scan_work(struct work_struct *work) /* It is not stated in WSM specification, however * FW team says that driver may not use FG scan * when joined. */ - if (priv->join_status == CW1200_JOIN_STATUS_STA) + if (priv->join_status == CW1200_JOIN_STATUS_STA) { scan.scanType = WSM_SCAN_TYPE_BACKGROUND; + scan.scanFlags = WSM_SCAN_FLAG_FORCE_BACKGROUND; + } scan.ch = kzalloc( sizeof(struct wsm_scan_ch[it - priv->scan.curr]), GFP_KERNEL); @@ -380,8 +382,10 @@ void cw1200_probe_work(struct work_struct *work) scan.maxTransmitRate = wsm->maxTxRate; scan.band = (priv->channel->band == IEEE80211_BAND_5GHZ) ? WSM_PHY_BAND_5G : WSM_PHY_BAND_2_4G; - if (priv->join_status == CW1200_JOIN_STATUS_STA) + if (priv->join_status == CW1200_JOIN_STATUS_STA) { scan.scanType = WSM_SCAN_TYPE_BACKGROUND; + scan.scanFlags = WSM_SCAN_FLAG_FORCE_BACKGROUND; + } ch[0].number = priv->channel->hw_value; skb_pull(frame.skb, txpriv->offset); |