diff options
author | Bing Zhao <bzhao@marvell.com> | 2009-03-25 12:51:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:26 -0400 |
commit | 684d6b360222f31b6b9be9a63aa5c6ed5674c890 (patch) | |
tree | 65e91de4f3e3617b5ecb24ef6ec5bb4b4d697f9c /drivers/net/wireless/libertas/defs.h | |
parent | 5e3af1d2d3e6c0011b4c22514d39c73dcbc6674f (diff) |
libertas: support mesh for various firmware versions
CMD_MESH_CONFIG command ID and a couple of structure members in TxPD,
RxPD have been changed in firmware version 10.x.y.z and newer.
Signed-off-by: Kiran Divekar <dkiran@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/defs.h')
-rw-r--r-- | drivers/net/wireless/libertas/defs.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/defs.h b/drivers/net/wireless/libertas/defs.h index e8dfde39abfc..48da157d6cda 100644 --- a/drivers/net/wireless/libertas/defs.h +++ b/drivers/net/wireless/libertas/defs.h | |||
@@ -227,6 +227,20 @@ static inline void lbs_deb_hex(unsigned int grp, const char *prompt, u8 *buf, in | |||
227 | #define TxPD_CONTROL_WDS_FRAME (1<<17) | 227 | #define TxPD_CONTROL_WDS_FRAME (1<<17) |
228 | #define TxPD_MESH_FRAME TxPD_CONTROL_WDS_FRAME | 228 | #define TxPD_MESH_FRAME TxPD_CONTROL_WDS_FRAME |
229 | 229 | ||
230 | /** Mesh interface ID */ | ||
231 | #define MESH_IFACE_ID 0x0001 | ||
232 | /** Mesh id should be in bits 14-13-12 */ | ||
233 | #define MESH_IFACE_BIT_OFFSET 0x000c | ||
234 | /** Mesh enable bit in FW capability */ | ||
235 | #define MESH_CAPINFO_ENABLE_MASK (1<<16) | ||
236 | |||
237 | /** FW definition from Marvell v5 */ | ||
238 | #define MRVL_FW_V5 (0x05) | ||
239 | /** FW definition from Marvell v10 */ | ||
240 | #define MRVL_FW_V10 (0x0a) | ||
241 | /** FW major revision definition */ | ||
242 | #define MRVL_FW_MAJOR_REV(x) ((x)>>24) | ||
243 | |||
230 | /** RxPD status */ | 244 | /** RxPD status */ |
231 | 245 | ||
232 | #define MRVDRV_RXPD_STATUS_OK 0x0001 | 246 | #define MRVDRV_RXPD_STATUS_OK 0x0001 |
@@ -380,6 +394,13 @@ enum KEY_INFO_WPA { | |||
380 | KEY_INFO_WPA_ENABLED = 0x04 | 394 | KEY_INFO_WPA_ENABLED = 0x04 |
381 | }; | 395 | }; |
382 | 396 | ||
397 | /** mesh_fw_ver */ | ||
398 | enum _mesh_fw_ver { | ||
399 | MESH_NONE = 0, /* MESH is not supported */ | ||
400 | MESH_FW_OLD, /* MESH is supported in FW V5 */ | ||
401 | MESH_FW_NEW, /* MESH is supported in FW V10 and newer */ | ||
402 | }; | ||
403 | |||
383 | /* Default values for fwt commands. */ | 404 | /* Default values for fwt commands. */ |
384 | #define FWT_DEFAULT_METRIC 0 | 405 | #define FWT_DEFAULT_METRIC 0 |
385 | #define FWT_DEFAULT_DIR 1 | 406 | #define FWT_DEFAULT_DIR 1 |