summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wl12xx/wl12xx.h
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2012-11-27 17:52:00 +0400
committerLuciano Coelho <coelho@ti.com>2012-12-04 18:36:12 +0400
commit8675f9abdf5b67a3f621fa99e1f0e0c8d8ae2531 (patch)
treede74d34ec5a539ef4e281d20281fc648c8bdd745 /drivers/net/wireless/ti/wl12xx/wl12xx.h
parentb3ec9cf2052981171364c4f354f53a64089ecc75 (diff)
downloadlinux-8675f9abdf5b67a3f621fa99e1f0e0c8d8ae2531.tar.xz
wlcore/wl12xx/wl18xx: verify multi-role and single-role fw versions
Previously we were only checking the single-role firmware version. Now add code to check for the firmware versions separately for each firmware type. Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wl12xx/wl12xx.h')
-rw-r--r--drivers/net/wireless/ti/wl12xx/wl12xx.h32
1 files changed, 22 insertions, 10 deletions
diff --git a/drivers/net/wireless/ti/wl12xx/wl12xx.h b/drivers/net/wireless/ti/wl12xx/wl12xx.h
index 310df5200c26..a07be5e022fb 100644
--- a/drivers/net/wireless/ti/wl12xx/wl12xx.h
+++ b/drivers/net/wireless/ti/wl12xx/wl12xx.h
@@ -30,19 +30,31 @@
#define CHIP_ID_128X_PG10 (0x05030101)
#define CHIP_ID_128X_PG20 (0x05030111)
-/* minimum FW required for driver for wl127x */
+/* FW chip version for wl127x */
#define WL127X_CHIP_VER 6
-#define WL127X_IFTYPE_VER WLCORE_FW_VER_IGNORE
-#define WL127X_MAJOR_VER 10
-#define WL127X_SUBTYPE_VER WLCORE_FW_VER_IGNORE
-#define WL127X_MINOR_VER 115
+/* minimum single-role FW version for wl127x */
+#define WL127X_IFTYPE_SR_VER 3
+#define WL127X_MAJOR_SR_VER 10
+#define WL127X_SUBTYPE_SR_VER WLCORE_FW_VER_IGNORE
+#define WL127X_MINOR_SR_VER 115
+/* minimum multi-role FW version for wl127x */
+#define WL127X_IFTYPE_MR_VER 5
+#define WL127X_MAJOR_MR_VER 7
+#define WL127X_SUBTYPE_MR_VER WLCORE_FW_VER_IGNORE
+#define WL127X_MINOR_MR_VER 115
-/* minimum FW required for driver for wl128x */
+/* FW chip version for wl128x */
#define WL128X_CHIP_VER 7
-#define WL128X_IFTYPE_VER WLCORE_FW_VER_IGNORE
-#define WL128X_MAJOR_VER 10
-#define WL128X_SUBTYPE_VER WLCORE_FW_VER_IGNORE
-#define WL128X_MINOR_VER 115
+/* minimum single-role FW version for wl128x */
+#define WL128X_IFTYPE_SR_VER 3
+#define WL128X_MAJOR_SR_VER 10
+#define WL128X_SUBTYPE_SR_VER WLCORE_FW_VER_IGNORE
+#define WL128X_MINOR_SR_VER 115
+/* minimum multi-role FW version for wl128x */
+#define WL128X_IFTYPE_MR_VER 5
+#define WL128X_MAJOR_MR_VER 7
+#define WL128X_SUBTYPE_MR_VER WLCORE_FW_VER_IGNORE
+#define WL128X_MINOR_MR_VER 42
#define WL12XX_AGGR_BUFFER_SIZE (4 * PAGE_SIZE)