Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13a9930d authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman
Browse files

staging: ks7010: add driver from Nanonote extra-repository



See the TODO for details where this driver came from. Only a few minor
changes were made to make the driver suitable for staging:

* updated Kconfig help text and dependencies
* added TODO
* removed two __DATE__ and __TIME__ printouts to allow reproducible builds
* added to staging main Kconfig + Makefile

Tested on a Renesas Salvator-X board with a Spectec SDW-823 card. I
could connect to a WPA-protected network.

Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e3c9078a
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -102,4 +102,6 @@ source "drivers/staging/most/Kconfig"


source "drivers/staging/i4l/Kconfig"
source "drivers/staging/i4l/Kconfig"


source "drivers/staging/ks7010/Kconfig"

endif # STAGING
endif # STAGING
+1 −0
Original line number Original line Diff line number Diff line
@@ -40,3 +40,4 @@ obj-$(CONFIG_FSL_MC_BUS) += fsl-mc/
obj-$(CONFIG_WILC1000)		+= wilc1000/
obj-$(CONFIG_WILC1000)		+= wilc1000/
obj-$(CONFIG_MOST)		+= most/
obj-$(CONFIG_MOST)		+= most/
obj-$(CONFIG_ISDN_I4L)		+= i4l/
obj-$(CONFIG_ISDN_I4L)		+= i4l/
obj-$(CONFIG_KS7010)		+= ks7010/
+9 −0
Original line number Original line Diff line number Diff line
config KS7010
	tristate "KeyStream KS7010 SDIO support"
	depends on MMC && WIRELESS
	select WIRELESS_EXT
	select WEXT_PRIV
	help
	  This is a driver for KeyStream KS7010 based SDIO WIFI cards. It is
	  found on at least later Spectec SDW-821 (FCC-ID "S2Y-WLAN-11G-K" only,
	  sadly not FCC-ID "S2Y-WLAN-11B-G") and Spectec SDW-823 microSD cards.
+5 −0
Original line number Original line Diff line number Diff line
obj-$(CONFIG_KS7010) += ks7010.o

ccflags-y 	     += -D_SDIO_ -DKS_WLAN_DEBUG=0
ks7010-y	     := michael_mic.o ks_hostif.o ks_wlan_net.o ks_debug.o \
					ks7010_sdio.o ks7010_config.o
+38 −0
Original line number Original line Diff line number Diff line
KS7010 Linux driver
===================

This driver is based on source code from the Ben Nanonote extra repository [1]
which is based on the original v007 release from Renesas [2]. Some more
background info about the chipset can be found here [3] and here [4]. Thank
you to all which already participated in cleaning up the driver so far!

[1] http://projects.qi-hardware.com/index.php/p/openwrt-packages/source/tree/master/ks7010/src
[2] http://downloads.qi-hardware.com/software/ks7010_sdio_v007.tar.bz2
[3] http://en.qi-hardware.com/wiki/Ben_NanoNote_Wi-Fi
[4] https://wikidevi.com/wiki/Renesas

TODO
----

First a few words what not to do (at least not blindly):

- don't be overly strict with the 80 char limit. Only if it REALLY makes the
  code more readable
- No '#if 0/1' removal unless the surrounding code is understood and removal is
  really OK. There might be some hints hidden there.

Now the TODOs:

- fix codechecker warnings (checkpatch, sparse, smatch). But PLEASE make sure
  that you are not only silencing the warning but really fixing code. You
  should understand the change you submit.
- drop using a config file and use an upstream technique for configuration
- fix the 'card removal' event when card is inserted when booting
- driver crashes when removing the card
- check what other upstream wireless mechanisms can be used instead of the
  custom ones here

Please send any patches to:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Wolfram Sang <wsa@the-dreams.de>
Linux Driver Project Developer List <driverdev-devel@linuxdriverproject.org>
Loading