summaryrefslogtreecommitdiff
path: root/drivers/staging/cw1200/sta.c
diff options
context:
space:
mode:
authorLukasz Kucharczyk <lukasz.kucharczyk@tieto.com>2012-02-29 15:14:53 +0100
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:06:43 +0200
commitce0fce4d8b7df2332fa3ed8323f9c6378c2376ea (patch)
treea0b8f01636b45af7a4b18edd806c7c2ea20a874c /drivers/staging/cw1200/sta.c
parentcf1aa19048fba67a8dcdf9b2f1164cbb10c5c8b4 (diff)
cw1200: enable non-ERP protection.
Non-ERP protection is enabled and relevant bit is set in ERP information element upon detection of non-ERP station nearby. ST-Ericsson ID: 374909 Depends-on: I16ca7675d47361246145c7924af4c6fe3601f9ab Depends-on: Ib788fdcb89b14e8ae0f20f8bf1da9b625c4912b8 Change-Id: Ie1932612e52d6ba26882f30bb45211202cab1393 Signed-off-by: Lukasz Kucharczyk <lukasz.kucharczyk@tieto.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/39121 Reviewed-by: Bartosz MARKOWSKI <bartosz.markowski@tieto.com> Tested-by: Bartosz MARKOWSKI <bartosz.markowski@tieto.com>
Diffstat (limited to 'drivers/staging/cw1200/sta.c')
-rw-r--r--drivers/staging/cw1200/sta.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/staging/cw1200/sta.c b/drivers/staging/cw1200/sta.c
index 33856e6fc43..5f431a0e2de 100644
--- a/drivers/staging/cw1200/sta.c
+++ b/drivers/staging/cw1200/sta.c
@@ -74,7 +74,7 @@ int cw1200_start(struct ieee80211_hw *dev)
priv->cqm_beacon_loss_count = 20;
/* Temporary configuration - beacon filter table */
- priv->bf_table.numOfIEs = __cpu_to_le32(1);
+ priv->bf_table.numOfIEs = __cpu_to_le32(2);
priv->bf_table.entry[0].ieId = WLAN_EID_VENDOR_SPECIFIC;
priv->bf_table.entry[0].actionFlags = WSM_BEACON_FILTER_IE_HAS_CHANGED |
WSM_BEACON_FILTER_IE_NO_LONGER_PRESENT |
@@ -82,6 +82,10 @@ int cw1200_start(struct ieee80211_hw *dev)
priv->bf_table.entry[0].oui[0] = 0x50;
priv->bf_table.entry[0].oui[1] = 0x6F;
priv->bf_table.entry[0].oui[2] = 0x9A;
+ priv->bf_table.entry[1].ieId = WLAN_EID_ERP_INFO;
+ priv->bf_table.entry[1].actionFlags = WSM_BEACON_FILTER_IE_HAS_CHANGED |
+ WSM_BEACON_FILTER_IE_NO_LONGER_PRESENT |
+ WSM_BEACON_FILTER_IE_HAS_APPEARED;
priv->bf_control.enabled = 1;
ret = cw1200_setup_mac(priv);