Skip to content

Commit

Permalink
wl1271_sdio_test: Add module for sdio RX/TX testing
Browse files Browse the repository at this point in the history
This module enables individually generating RX and TX traffic
over the SDIO bus on which the WL1271 chipset is connected.
This is required to perform RF interference testing.

The module takes 2 module parameters 'rx' and 'tx'.

To generate RX traffic:
	modprobe wl1271_sdio_test rx=1
To generate TX traffic:
	modprobe wl1271_sdio_test tx=1

To generate both RX & TX traffic, set both rx and tx to 1.

You can change the testing configuration at runtime by changing
the rx & tx values at /sys/modules/wl1271_sdio_test/

To stop testing simply unload the module.

Signed-off-by: Roger Quadros <roger.quadros@nokia.com>
Reviewed-by: Carlos Chinea <carlos.chinea@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
  • Loading branch information
Roger Quadros authored and Luciano Coelho committed Dec 15, 2010
1 parent fb6a681 commit b69eb80
Show file tree
Hide file tree
Showing 3 changed files with 520 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/net/wireless/wl12xx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ config WL12XX_SDIO
If you choose to build a module, it'll be called wl12xx_sdio.
Say N if unsure.

config WL1271_SDIO_TEST
tristate "TI wl1271 SDIO testing support"
depends on WL1271 && MMC
---help---
This module adds support for the SDIO bus testing with the
TI wl1271 chipset. Select this if your platform is using
the SDIO bus.

config WL12XX_PLATFORM_DATA
bool
depends on WL12XX_SDIO != n || WL1251_SDIO != n
Expand Down
2 changes: 2 additions & 0 deletions drivers/net/wireless/wl12xx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ obj-$(CONFIG_WL12XX) += wl12xx.o
obj-$(CONFIG_WL12XX_SPI) += wl12xx_spi.o
obj-$(CONFIG_WL12XX_SDIO) += wl12xx_sdio.o

obj-$(CONFIG_WL1271_SDIO_TEST) += wl1271_sdio_test.o

# small builtin driver bit
obj-$(CONFIG_WL12XX_PLATFORM_DATA) += wl12xx_platform_data.o
Loading

0 comments on commit b69eb80

Please sign in to comment.