Now I'm trying to port driver for WL1271 to my custom board. I got TI WLAN source code from below link and I'm trying to port based on it.
http://android.git.kernel.org/?p=platform/system/wlan/ti.git;a=summary WL1271 is connected via McSPI to OMAP on my board. So, I changed "WSPI ?= n" to "WSPI ?= y" in "wlan/ti/sta_dk_4_0_4_32/ common.inc". Then when I build it, I'm facing some error like below. ---- /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:360: undefined reference to `SPI_Write' drivers/built-in.o: In function `WSPI_WriteAsync': /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:1292: undefined reference to `SPI_Write' drivers/built-in.o: In function `WSPI_WriteAsyncOld': /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:1196: undefined reference to `SPI_WriteSync' /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:1203: undefined reference to `SPI_Write' drivers/built-in.o: In function `WSPI_WriteSync': /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:694: undefined reference to `SPI_WriteSync' /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:699: undefined reference to `SPI_WriteSync' drivers/built-in.o: In function `WSPI_HandleFixedBusy': /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:1093: undefined reference to `SPI_WriteRead' /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:1111: undefined reference to `SPI_WriteRead' drivers/built-in.o: In function `WSPI_ReadAsync': /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:792: undefined reference to `SPI_WriteRead' drivers/built-in.o: In function `WSPI_ReadSync': /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:454: undefined reference to `SPI_WriteSync' /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:462: undefined reference to `SPI_ReadSync' /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:481: undefined reference to `SPI_ReadSync' /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:482: undefined reference to `SPI_ReadSync' /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:486: undefined reference to `SPI_ReadSync' drivers/built-in.o: In function `WSPI_ReadAsyncOld': /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:557: undefined reference to `SPI_WriteSync' /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:566: undefined reference to `SPI_ReadSync' /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:591: undefined reference to `SPI_ReadSync' /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:592: undefined reference to `SPI_ReadSync' /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:600: undefined reference to `SPI_Read' drivers/built-in.o: In function `WSPI_Configure': /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:311: undefined reference to `SPI_Write' drivers/built-in.o: In function `WSPI_Close': /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:219: undefined reference to `SPI_Close' drivers/built-in.o: In function `WSPI_Open': /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ BusTxn/wspi.c:195: undefined reference to `SPI_Open' ---- Note: I changed location of this driver from "platform/system/wlan" to "driver/wlan". I found that these functions are declared in "sta_dk_4_0_4_32\pform \linux\inc\spi_api.h", but there are no implementation. Should I implement it by myself? Did someone try to build TI WLAN driver with SPI interface? -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
