diff options
author | Arik Nemtsov <arik@wizery.com> | 2011-03-06 09:32:18 -0500 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-04-19 09:49:02 -0400 |
commit | 1aed55fd784d000fb6741cefb68712d64817bd68 (patch) | |
tree | 6d2db14867c3656e2330091771ff2f37d5209c82 /drivers/net/wireless/wl12xx/main.c | |
parent | ae47c45fd02fdf88d57adc370e78e7a01e2bfcbc (diff) |
wl12xx: 1281/1283 support - Use different FW file for AP mode wl127x/wl128x chips
Choose a different FW for AP-mode wl127x and wl128x chips, base on chip
ID at boot time.
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Reviewed-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/main.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c index 54ac6757c39..9a7ca6524d2 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c | |||
@@ -832,7 +832,10 @@ static int wl1271_fetch_firmware(struct wl1271 *wl) | |||
832 | 832 | ||
833 | switch (wl->bss_type) { | 833 | switch (wl->bss_type) { |
834 | case BSS_TYPE_AP_BSS: | 834 | case BSS_TYPE_AP_BSS: |
835 | fw_name = WL1271_AP_FW_NAME; | 835 | if (wl->chip.id == CHIP_ID_1283_PG20) |
836 | fw_name = WL128X_AP_FW_NAME; | ||
837 | else | ||
838 | fw_name = WL127X_AP_FW_NAME; | ||
836 | break; | 839 | break; |
837 | case BSS_TYPE_IBSS: | 840 | case BSS_TYPE_IBSS: |
838 | case BSS_TYPE_STA_BSS: | 841 | case BSS_TYPE_STA_BSS: |