diff options
author | Avinash Patil <patila@marvell.com> | 2012-05-08 21:30:24 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-05-16 12:46:36 -0400 |
commit | 12190c5d80bd3c880c76fdaee5a56314ff0bd256 (patch) | |
tree | ea9fc4b3a627a277fa0b0587a05dac3bc868c6e0 /drivers/net/wireless/mwifiex/fw.h | |
parent | 9b930eaed9c7e722eb1ae4f4632ff1ab285b3c4a (diff) |
mwifiex: add cfg80211 start_ap and stop_ap handlers
1. add start AP and stop AP handlers
2. support for parsing ssid, beacon period, DTIM period
from beacon_parameters structure and setting it to FW.
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: Kiran Divekar <dkiran@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/fw.h')
-rw-r--r-- | drivers/net/wireless/mwifiex/fw.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/fw.h b/drivers/net/wireless/mwifiex/fw.h index a4c2fc3e3d71..07243c04454a 100644 --- a/drivers/net/wireless/mwifiex/fw.h +++ b/drivers/net/wireless/mwifiex/fw.h | |||
@@ -93,6 +93,8 @@ enum MWIFIEX_802_11_PRIVACY_FILTER { | |||
93 | 93 | ||
94 | #define CAL_SNR(RSSI, NF) ((s16)((s16)(RSSI)-(s16)(NF))) | 94 | #define CAL_SNR(RSSI, NF) ((s16)((s16)(RSSI)-(s16)(NF))) |
95 | 95 | ||
96 | #define TLV_TYPE_UAP_SSID 0x0000 | ||
97 | |||
96 | #define PROPRIETARY_TLV_BASE_ID 0x0100 | 98 | #define PROPRIETARY_TLV_BASE_ID 0x0100 |
97 | #define TLV_TYPE_KEY_MATERIAL (PROPRIETARY_TLV_BASE_ID + 0) | 99 | #define TLV_TYPE_KEY_MATERIAL (PROPRIETARY_TLV_BASE_ID + 0) |
98 | #define TLV_TYPE_CHANLIST (PROPRIETARY_TLV_BASE_ID + 1) | 100 | #define TLV_TYPE_CHANLIST (PROPRIETARY_TLV_BASE_ID + 1) |
@@ -106,6 +108,8 @@ enum MWIFIEX_802_11_PRIVACY_FILTER { | |||
106 | #define TLV_TYPE_AUTH_TYPE (PROPRIETARY_TLV_BASE_ID + 31) | 108 | #define TLV_TYPE_AUTH_TYPE (PROPRIETARY_TLV_BASE_ID + 31) |
107 | #define TLV_TYPE_STA_MAC_ADDR (PROPRIETARY_TLV_BASE_ID + 32) | 109 | #define TLV_TYPE_STA_MAC_ADDR (PROPRIETARY_TLV_BASE_ID + 32) |
108 | #define TLV_TYPE_CHANNELBANDLIST (PROPRIETARY_TLV_BASE_ID + 42) | 110 | #define TLV_TYPE_CHANNELBANDLIST (PROPRIETARY_TLV_BASE_ID + 42) |
111 | #define TLV_TYPE_UAP_BEACON_PERIOD (PROPRIETARY_TLV_BASE_ID + 44) | ||
112 | #define TLV_TYPE_UAP_DTIM_PERIOD (PROPRIETARY_TLV_BASE_ID + 45) | ||
109 | #define TLV_TYPE_UAP_RTS_THRESHOLD (PROPRIETARY_TLV_BASE_ID + 51) | 113 | #define TLV_TYPE_UAP_RTS_THRESHOLD (PROPRIETARY_TLV_BASE_ID + 51) |
110 | #define TLV_TYPE_UAP_FRAG_THRESHOLD (PROPRIETARY_TLV_BASE_ID + 70) | 114 | #define TLV_TYPE_UAP_FRAG_THRESHOLD (PROPRIETARY_TLV_BASE_ID + 70) |
111 | #define TLV_TYPE_RATE_DROP_CONTROL (PROPRIETARY_TLV_BASE_ID + 82) | 115 | #define TLV_TYPE_RATE_DROP_CONTROL (PROPRIETARY_TLV_BASE_ID + 82) |
@@ -1119,6 +1123,20 @@ struct host_cmd_ds_sys_config { | |||
1119 | __le16 action; | 1123 | __le16 action; |
1120 | u8 tlv[0]; | 1124 | u8 tlv[0]; |
1121 | }; | 1125 | }; |
1126 | struct host_cmd_tlv_ssid { | ||
1127 | struct host_cmd_tlv tlv; | ||
1128 | u8 ssid[0]; | ||
1129 | } __packed; | ||
1130 | |||
1131 | struct host_cmd_tlv_beacon_period { | ||
1132 | struct host_cmd_tlv tlv; | ||
1133 | __le16 period; | ||
1134 | } __packed; | ||
1135 | |||
1136 | struct host_cmd_tlv_dtim_period { | ||
1137 | struct host_cmd_tlv tlv; | ||
1138 | u8 period; | ||
1139 | } __packed; | ||
1122 | 1140 | ||
1123 | struct host_cmd_tlv_frag_threshold { | 1141 | struct host_cmd_tlv_frag_threshold { |
1124 | struct host_cmd_tlv tlv; | 1142 | struct host_cmd_tlv tlv; |