diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-06-25 15:40:31 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:31 -0700 |
commit | 36c7928c3e948cf8862d4b5c3df27c5a841cb503 (patch) | |
tree | 9769ce92a4e6f1e3c54b4062ccb912e5637a503c | |
parent | fd882783abc0760075d42982d155e8eac2f802ac (diff) |
Staging: add rt3090 wireless driver
This is the vendor driver for the Ralink RT3090 chipset.
It should be later cleaned and ported to use the existing rt2x00
infrastructure or just replaced by the proper version.
[ Unfortunately since it follows the same design/implementation like
rt{286,287,307}0 drivers (already present in the staging tree)
it is highly unlikely that it will see much love from the wireless
development community.. ]
However since the development of the cleaner/proper version can take
significant time lets give distros (i.e. openSUSE seems to already
have the package with the original vendor driver) and users "something"
to use in the meantime.
I forward ported it to 2.6.31-rc1, ported to the Linux build system
and did some initial cleanups. More fixes/cleanups to come later
(it seems that the driver can be made to share most of its code with
the other Ralink drivers already present in the staging tree).
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
112 files changed, 104961 insertions, 0 deletions
diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig index 975ecddbce3..530a29cc8aa 100644 --- a/drivers/staging/Kconfig +++ b/drivers/staging/Kconfig @@ -75,6 +75,8 @@ source "drivers/staging/rt2870/Kconfig" source "drivers/staging/rt3070/Kconfig" +source "drivers/staging/rt3090/Kconfig" + source "drivers/staging/comedi/Kconfig" source "drivers/staging/asus_oled/Kconfig" diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile index 2241ae1b21e..783dba49969 100644 --- a/drivers/staging/Makefile +++ b/drivers/staging/Makefile @@ -20,6 +20,7 @@ obj-$(CONFIG_OTUS) += otus/ obj-$(CONFIG_RT2860) += rt2860/ obj-$(CONFIG_RT2870) += rt2870/ obj-$(CONFIG_RT3070) += rt3070/ +obj-$(CONFIG_RT3090) += rt3090/ obj-$(CONFIG_COMEDI) += comedi/ obj-$(CONFIG_ASUS_OLED) += asus_oled/ obj-$(CONFIG_PANEL) += panel/ diff --git a/drivers/staging/rt3090/Kconfig b/drivers/staging/rt3090/Kconfig new file mode 100644 index 00000000000..255e8eaa483 --- /dev/null +++ b/drivers/staging/rt3090/Kconfig @@ -0,0 +1,5 @@ +config RT3090 + tristate "Ralink 3090 wireless support" + depends on PCI && X86 && WLAN_80211 + ---help--- + This is an experimental driver for the Ralink 3090 wireless chip. diff --git a/drivers/staging/rt3090/Makefile b/drivers/staging/rt3090/Makefile new file mode 100644 index 00000000000..995491c91fc --- /dev/null +++ b/drivers/staging/rt3090/Makefile @@ -0,0 +1,80 @@ +obj-$(CONFIG_RT3090) += rt3090sta.o + +include drivers/staging/rt3090/config.mk + +rt3090sta-objs := \ + common/crypt_md5.o \ + common/crypt_sha2.o \ + common/crypt_hmac.o \ + common/mlme.o \ + common/cmm_wep.o \ + common/action.o \ + common/cmm_data.o \ + common/rtmp_init.o \ + common/cmm_tkip.o \ + common/cmm_aes.o \ + common/cmm_sync.o \ + common/eeprom.o \ + common/cmm_sanity.o \ + common/cmm_info.o \ + common/cmm_cfg.o \ + common/cmm_wpa.o \ + common/dfs.o \ + common/spectrum.o \ + common/rtmp_timer.o \ + common/rt_channel.o \ + common/cmm_profile.o \ + common/cmm_asic.o \ + sta/assoc.o \ + sta/auth.o \ + sta/auth_rsp.o \ + sta/sync.o \ + sta/sanity.o \ + sta/rtmp_data.o \ + sta/connect.o \ + sta/wpa.o \ + rt_linux.o \ + rt_profile.o \ + rt_main_dev.o \ + sta_ioctl.o + +#ifdef DOT11_N_SUPPORT +ifeq ($(HAS_DOT11_N_SUPPORT),y) +rt3090sta-objs += \ + common/ba_action.o +endif +#endif // DOT11_N_SUPPORT // + +#ifdef ETH_CONVERT +ifeq ($(HAS_ETH_CONVERT_SUPPORT), y) +rt3090sta-objs += \ + common/cmm_mat.o \ + common/cmm_mat_iparp.o \ + common/cmm_mat_pppoe.o \ + common/cmm_mat_ipv6.o +endif +#endif // ETH_CONVERT // + +ifeq ($(HAS_BLOCK_NET_IF),y) +rt3090sta-objs += common/netif_block.o +endif + +ifeq ($(HAS_QOS_DLS_SUPPORT),y) +rt3090sta-objs += sta/dls.o +endif + +rt3090sta-objs += \ + pci_main_dev.o \ + rt_pci_rbus.o \ + common/cmm_mac_pci.o \ + common/cmm_data_pci.o \ + common/ee_prom.o \ + common/ee_efuse.o \ + common/rtmp_mcu.o \ + chips/rt30xx.o \ + common/rt_rf.o \ + chips/rt3090.o + +ifeq ($(HAS_ATE),y) +rt3090sta-objs += rt_ate.o +endif diff --git a/drivers/staging/rt3090/action.h b/drivers/staging/rt3090/action.h new file mode 100644 index 00000000000..ac0a0a3c5ce --- /dev/null +++ b/drivers/staging/rt3090/action.h @@ -0,0 +1,66 @@ +/* + ************************************************************************* + * Ralink Tech Inc. + * 5F., No.36, Taiyuan St., Jhubei City, + * Hsinchu County 302, + * Taiwan, R.O.C. + * + * (c) Copyright 2002-2007, Ralink Technology, Inc. + * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * * + ************************************************************************* + + Module Name: + aironet.h + + Abstract: + + Revision History: + Who When What + -------- ---------- ---------------------------------------------- + Name Date Modification logs + Paul Lin 04-06-15 Initial +*/ + +#ifndef __ACTION_H__ +#define __ACTION_H__ + +typedef struct PACKED __HT_INFO_OCTET +{ +#ifdef RT_BIG_ENDIAN + UCHAR Reserved:5; + UCHAR STA_Channel_Width:1; + UCHAR Forty_MHz_Intolerant:1; + UCHAR Request:1; +#else + UCHAR Request:1; + UCHAR Forty_MHz_Intolerant:1; + UCHAR STA_Channel_Width:1; + UCHAR Reserved:5; +#endif +} HT_INFORMATION_OCTET; + + +typedef struct PACKED __FRAME_HT_INFO +{ + HEADER_802_11 Hdr; + UCHAR Category; + UCHAR Action; + HT_INFORMATION_OCTET HT_Info; +} FRAME_HT_INFO, *PFRAME_HT_INFO; + +#endif /* __ACTION_H__ */ diff --git a/drivers/staging/rt3090/ap.h b/drivers/staging/rt3090/ap.h new file mode 100644 index 00000000000..e8943038107 --- /dev/null +++ b/drivers/staging/rt3090/ap.h @@ -0,0 +1,512 @@ +/* + ************************************************************************* + * Ralink Tech Inc. + * 5F., No.36, Taiyuan St., Jhubei City, + * Hsinchu County 302, + * Taiwan, R.O.C. + * + * (c) Copyright 2002-2007, Ralink Technology, Inc. + * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foun |