diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-26 17:39:02 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-26 17:39:02 +0400 |
commit | aa77677e0a288e08073620db5d2a31df83ca4788 (patch) | |
tree | 0d14b995a21c43f365d66b9ad101a334109fc4e4 /drivers/staging/rtl8192u | |
parent | efb8d21b2c6db3497655cc6a033ae8a9883e4063 (diff) | |
parent | 43a3beb6da994549ec28a9f31727b997a025f958 (diff) | |
download | linux-aa77677e0a288e08073620db5d2a31df83ca4788.tar.xz |
Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
* 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (1519 commits)
staging: et131x: Remove redundant check and return statement
staging: et131x: Mainly whitespace changes to appease checkpatch
staging: et131x: Remove last of the forward declarations
staging: et131x: Remove even more forward declarations
staging: et131x: Remove yet more forward declarations
staging: et131x: Remove more forward declarations
staging: et131x: Remove forward declaration of et131x_adapter_setup
staging: et131x: Remove some forward declarations
staging: et131x: Remove unused rx_ring.recv_packet_pool
staging: et131x: Remove call to find pci pm capability
staging: et131x: Remove redundant et131x_reset_recv() call
staging: et131x: Remove unused rx_ring.recv_buffer_pool
Staging: bcm: Fix three initialization errors in InterfaceDld.c
Staging: bcm: Fix coding style issues in InterfaceDld.c
staging:iio:dac: Add AD5360 driver
staging:iio:trigger:bfin-timer: Fix compile error
Staging: vt6655: add some range checks before memcpy()
Staging: vt6655: whitespace fixes to iotcl.c
Staging: vt6656: add some range checks before memcpy()
Staging: vt6656: whitespace cleanups in ioctl.c
...
Fix up conflicts in:
- drivers/{Kconfig,Makefile}, drivers/staging/{Kconfig,Makefile}:
vg driver movement
- drivers/staging/brcm80211/brcmfmac/{dhd_linux.c,mac80211_if.c}:
driver removal vs now stale changes
- drivers/staging/rtl8192e/r8192E_core.c:
driver removal vs now stale changes
- drivers/staging/et131x/et131*:
driver consolidation into one file, tried to do fixups
Diffstat (limited to 'drivers/staging/rtl8192u')
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/Makefile | 109 | ||||
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/compress.c | 4 | ||||
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/ieee80211.h | 4 | ||||
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 14 |
4 files changed, 11 insertions, 120 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/Makefile b/drivers/staging/rtl8192u/ieee80211/Makefile index 0775c5599d69..51effd6412ac 100644 --- a/drivers/staging/rtl8192u/ieee80211/Makefile +++ b/drivers/staging/rtl8192u/ieee80211/Makefile @@ -1,25 +1,9 @@ NIC_SELECT = RTL8192U -KVER := $(shell uname -r) -MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/$(NIC_SELECT) - -CC = gcc -ifneq ($(shell uname -r|cut -d. -f1,2), 2.4) ccflags-y := -I$(TOPDIR)/drivers/net/wireless ccflags-y += -O2 ccflags-y += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX -#it will fail to compile in suse linux enterprise 10 sp2. This flag is to solve this problem. -ifeq ($(shell uname -r | cut -d. -f1,2,3,4), 2.6.16.60-0) -ccflags-y := -DOPENSUSE_SLED -endif - -ifeq ($(NIC_SELECT),RTL8192U) -#ccflags-y := -DUSB_TX_DRIVER_AGGREGATION_ENABLE -#ccflags-y := -DUSB_RX_AGGREGATION_SUPPORT -endif -#ccflags-y := -DJOHN_NOCPY -#flags to enable or disble 80211D feature ieee80211-rsl-objs := ieee80211_rx.o \ ieee80211_softmac.o \ ieee80211_tx.o \ @@ -42,96 +26,3 @@ obj-m +=ieee80211_crypt_wep-rsl.o obj-m +=ieee80211_crypt_tkip-rsl.o obj-m +=ieee80211_crypt_ccmp-rsl.o -KSRC := /lib/modules/$(KVER)/build -INSTALL_PREFIX := - -all: modules - -modules: - $(MAKE) -C $(KSRC) M=$(PWD) CC=$(CC) modules - -install: modules - rm -fr $(MODDESTDIR) - mkdir -p $(MODDESTDIR) - @install -p -m 644 ieee80211_crypt-rsl.ko $(MODDESTDIR) - @install -p -m 644 ieee80211_crypt_wep-rsl.ko $(MODDESTDIR) - @install -p -m 644 ieee80211_crypt_tkip-rsl.ko $(MODDESTDIR) - @install -p -m 644 ieee80211_crypt_ccmp-rsl.ko $(MODDESTDIR) - @install -p -m 644 ieee80211-rsl.ko $(MODDESTDIR) - depmod -a -uninstall: - rm -fr $(MODDESTDIR) - depmod -a - -else -LD := ld -KSRC := /lib/modules/$(KVER)/build -CONFIG_FILE := $(KSRC)/include/linux/autoconf.h - -CFLAGS += -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -CFLAGS += -I$(KSRC)/include -I. -#Kernel 2.4.31 -CFLAGS += -DMODVERSIONS -DEXPORT_SYMTAB -include $(KSRC)/include/linux/modversions.h -#Kernel 2.4.20 -#CFLAGS += -D__NO_VERSION__ -DEXPORT_SYMTAB -SMP := $(shell $(CC) $(MODCFLAGS) -E -dM $(CONFIG_FILE) | \ - grep CONFIG_SMP | awk '{print $$3}') -ifneq ($(SMP),1) - SMP := 0 -endif -ifeq ($(SMP),1) - CFLAGS += -D__SMP__ -endif - -#CFLAGS += -DJOHN_NOCPY - -OBJS := ${patsubst %.c, %.o, ${wildcard *.c}} -all:${OBJS} ieee80211_crypt-rsl.o michael_mic-rsl.o aes-rsl.o ieee80211_crypt_wep-rsl.o ieee80211_crypt_tkip-rsl.o ieee80211_crypt_ccmp-rsl.o crypto-rsl.o ieee80211-rsl.o - -ieee80211_crypt-rsl.o: ieee80211_crypt.o - mv $^ $@ - -michael_mic-rsl.o: michael_mic.o - mv $^ $@ - -aes-rsl.o: aes.o - mv $^ $@ - -ieee80211_crypt_wep-rsl.o: ieee80211_crypt_wep.o - mv $^ $@ - -ieee80211_crypt_tkip-rsl.o: ieee80211_crypt_tkip.o - mv $^ $@ - -ieee80211_crypt_ccmp-rsl.o: ieee80211_crypt_ccmp.o - mv $^ $@ - -crypto-rsl.o: arc4.o api.o autoload.o cipher.o compress.o digest.o scatterwalk.o proc.o - $(LD) -r $^ -o $@ - -ieee80211-rsl.o: ieee80211_rx.o ieee80211_tx.o ieee80211_wx.o ieee80211_module.o ieee80211_softmac_wx.o ieee80211_softmac.o rtl819x_HTProc.o rtl819x_TSProc.o rtl819x_BAProc.o dot11d.o - $(LD) -r $^ -o $@ -install: - rm -fr $(MODDESTDIR) - mkdir -p $(MODDESTDIR) - @install -p -m 644 ieee80211_crypt-rsl.o $(MODDESTDIR) - @install -p -m 644 crypto-rsl.o $(MODDESTDIR) - @install -p -m 644 michael_mic-rsl.o $(MODDESTDIR) - @install -p -m 644 aes-rsl.o $(MODDESTDIR) - @install -p -m 644 ieee80211_crypt_wep-rsl.o $(MODDESTDIR) - @install -p -m 644 ieee80211_crypt_tkip-rsl.o $(MODDESTDIR) - @install -p -m 644 ieee80211_crypt_ccmp-rsl.o $(MODDESTDIR) - @install -p -m 644 ieee80211-rsl.o $(MODDESTDIR) - /sbin/depmod -a ${shell uname -r} - -uninstall: - rm -fr $(MODDESTDIR) - /sbin/depmod -a ${shell uname -r} - -endif - -.PHONY: clean -clean: - rm -fr *.mod.c *.mod *.o .*.cmd *.mod.* *.ko *.o *~ - rm -rf .tmp_versions - rm -rf Module.symvers diff --git a/drivers/staging/rtl8192u/ieee80211/compress.c b/drivers/staging/rtl8192u/ieee80211/compress.c index 86c23c9223f2..5416ab63a738 100644 --- a/drivers/staging/rtl8192u/ieee80211/compress.c +++ b/drivers/staging/rtl8192u/ieee80211/compress.c @@ -12,10 +12,10 @@ * */ #include <linux/types.h> -//#include <linux/crypto.h> +/*#include <linux/crypto.h>*/ #include "rtl_crypto.h" #include <linux/errno.h> -#include <asm/scatterlist.h> +#include <linux/scatterlist.h> #include <linux/string.h> #include "internal.h" diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211.h b/drivers/staging/rtl8192u/ieee80211/ieee80211.h index 463cc2618904..1c0a1db6420f 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211.h +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211.h @@ -2416,8 +2416,8 @@ extern int ieee80211_wx_set_mlme(struct ieee80211_device *ieee, extern int ieee80211_wx_set_gen_ie(struct ieee80211_device *ieee, u8 *ie, size_t len); /* ieee80211_softmac.c */ -extern short ieee80211_is_54g(struct ieee80211_network net); -extern short ieee80211_is_shortslot(struct ieee80211_network net); +extern short ieee80211_is_54g(const struct ieee80211_network *net); +extern short ieee80211_is_shortslot(const struct ieee80211_network *net); extern int ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb, struct ieee80211_rx_stats *rx_stats, u16 type, u16 stype); diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c index b00eb0e65f33..c2ab5fa15465 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c @@ -31,14 +31,14 @@ u8 rsn_authen_cipher_suite[16][4] = { {0x00,0x0F,0xAC,0x05}, //WEP-104 }; -short ieee80211_is_54g(struct ieee80211_network net) +short ieee80211_is_54g(const struct ieee80211_network *net) { - return ((net.rates_ex_len > 0) || (net.rates_len > 4)); + return (net->rates_ex_len > 0) || (net->rates_len > 4); } -short ieee80211_is_shortslot(struct ieee80211_network net) +short ieee80211_is_shortslot(const struct ieee80211_network *net) { - return (net.capability & WLAN_CAPABILITY_SHORT_SLOT); + return net->capability & WLAN_CAPABILITY_SHORT_SLOT; } /* returns the total length needed for pleacing the RATE MFIE @@ -718,7 +718,7 @@ static struct sk_buff* ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d else atim_len = 0; - if(ieee80211_is_54g(ieee->current_network)) + if(ieee80211_is_54g(&ieee->current_network)) erp_len = 3; else erp_len = 0; @@ -1333,7 +1333,7 @@ void ieee80211_associate_complete_wq(struct work_struct *work) { struct ieee80211_device *ieee = container_of(work, struct ieee80211_device, associate_complete_wq); printk(KERN_INFO "Associated successfully\n"); - if(ieee80211_is_54g(ieee->current_network) && + if(ieee80211_is_54g(&ieee->current_network) && (ieee->modulation & IEEE80211_OFDM_MODULATION)){ ieee->rate = 108; @@ -1489,7 +1489,7 @@ inline void ieee80211_softmac_new_net(struct ieee80211_device *ieee, struct ieee ieee->state = IEEE80211_ASSOCIATING; queue_work(ieee->wq, &ieee->associate_procedure_wq); }else{ - if(ieee80211_is_54g(ieee->current_network) && + if(ieee80211_is_54g(&ieee->current_network) && (ieee->modulation & IEEE80211_OFDM_MODULATION)){ ieee->rate = 108; ieee->SetWirelessMode(ieee->dev, IEEE_G); |