wl12xx/wl18xx: add erp protection IE to the beacon filter
authorEliad Peller <eliad@wizery.com>
Tue, 15 May 2012 13:35:20 +0000 (16:35 +0300)
committerLuciano Coelho <coelho@ti.com>
Wed, 6 Jun 2012 16:28:06 +0000 (19:28 +0300)
We have to reconfigure the fw when erp protection should
be enabled/disabled. Pass beacons containing changes
in the ERP protection IE, so we could analyze them.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wl12xx/main.c
drivers/net/wireless/ti/wl18xx/main.c

index 2f6a39bfcf18b0c466eda9fc83a964904ddd195b..41017baaf25301e9c769c4704da4652673397e7c 100644 (file)
@@ -216,7 +216,7 @@ static struct wlcore_conf wl12xx_conf = {
                .suspend_wake_up_event       = CONF_WAKE_UP_EVENT_N_DTIM,
                .suspend_listen_interval     = 3,
                .bcn_filt_mode               = CONF_BCN_FILT_MODE_ENABLED,
-               .bcn_filt_ie_count           = 2,
+               .bcn_filt_ie_count           = 3,
                .bcn_filt_ie = {
                        [0] = {
                                .ie          = WLAN_EID_CHANNEL_SWITCH,
@@ -226,6 +226,10 @@ static struct wlcore_conf wl12xx_conf = {
                                .ie          = WLAN_EID_HT_OPERATION,
                                .rule        = CONF_BCN_RULE_PASS_ON_CHANGE,
                        },
+                       [2] = {
+                               .ie          = WLAN_EID_ERP_INFO,
+                               .rule        = CONF_BCN_RULE_PASS_ON_CHANGE,
+                       },
                },
                .synch_fail_thold            = 12,
                .bss_lose_timeout            = 400,
index 9e5ce569f8daf8c4e134cfd357c7dec11cbcfe32..c8d45f011c63191f735615a3b3141ac19226a743 100644 (file)
@@ -339,7 +339,7 @@ static struct wlcore_conf wl18xx_conf = {
                .suspend_wake_up_event       = CONF_WAKE_UP_EVENT_N_DTIM,
                .suspend_listen_interval     = 3,
                .bcn_filt_mode               = CONF_BCN_FILT_MODE_ENABLED,
-               .bcn_filt_ie_count           = 2,
+               .bcn_filt_ie_count           = 3,
                .bcn_filt_ie = {
                        [0] = {
                                .ie          = WLAN_EID_CHANNEL_SWITCH,
@@ -349,6 +349,10 @@ static struct wlcore_conf wl18xx_conf = {
                                .ie          = WLAN_EID_HT_OPERATION,
                                .rule        = CONF_BCN_RULE_PASS_ON_CHANGE,
                        },
+                       [2] = {
+                               .ie          = WLAN_EID_ERP_INFO,
+                               .rule        = CONF_BCN_RULE_PASS_ON_CHANGE,
+                       },
                },
                .synch_fail_thold            = 12,
                .bss_lose_timeout            = 400,