summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wlcore/conf.h
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2012-06-10 17:09:22 +0300
committerLuciano Coelho <coelho@ti.com>2012-06-21 12:51:41 +0300
commit66340e5b259bd7ca67cf0ca079dd3997fa198d4b (patch)
treee11c15268619ba6998b51cebf1496849932d7ddf /drivers/net/wireless/ti/wlcore/conf.h
parent26b5858a67e4316ecd8159e2c0dc5591ef68226a (diff)
downloadlinux-66340e5b259bd7ca67cf0ca079dd3997fa198d4b.tar.bz2
wlcore: allow setting sleep_auth before interface init
Hold a value for sta_sleep_auth that is amenable to change by debugfs. When detecting a legal value in this variable on interface init, use it as an override value for sleep_auth. This makes debugging more intuitive using the debugfs value. Increment the conf version since we added an element to the conf structure. Note: An AP going up will always set sleep_auth to PSM_CAM. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/conf.h')
-rw-r--r--drivers/net/wireless/ti/wlcore/conf.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/conf.h b/drivers/net/wireless/ti/wlcore/conf.h
index 03c635872335..d77224f2ac6b 100644
--- a/drivers/net/wireless/ti/wlcore/conf.h
+++ b/drivers/net/wireless/ti/wlcore/conf.h
@@ -951,6 +951,12 @@ struct conf_conn_settings {
* Range: u16
*/
u8 max_listen_interval;
+
+ /*
+ * Default sleep authorization for a new STA interface. This determines
+ * whether we can go to ELP.
+ */
+ u8 sta_sleep_auth;
} __packed;
enum {
@@ -1276,7 +1282,7 @@ struct conf_hangover_settings {
* version, the two LSB are the lower driver's private conf
* version.
*/
-#define WLCORE_CONF_VERSION (0x0001 << 16)
+#define WLCORE_CONF_VERSION (0x0002 << 16)
#define WLCORE_CONF_MASK 0xffff0000
#define WLCORE_CONF_SIZE (sizeof(struct wlcore_conf_header) + \
sizeof(struct wlcore_conf))