Stoyan Gaydarov
b6ac161364
Staging: ARRAY_SIZE changes
...
These changes were a direct result of using a semantic patch
More information can be found at http://www.emn.fr/x-info/coccinelle/
Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:02:06 -07:00
Bartlomiej Zolnierkiewicz
c0593dd934
Staging: rtl8192su/ieee80211: move rtl8192su specific code out from ieee80211.h
...
Move rtl8192su specific code out from ieee80211.h to ieee80211_r8192s.h.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:42 -07:00
Bartlomiej Zolnierkiewicz
f59d012790
Staging: rtl8192su/ieee80211: ieee80211.h cleanups
...
* remove unused / duplicated definitions
* remove unused / used only once typedefs
* fix comments, remove useless ones
* convert defines to enums where appropriate
* use __func__ instead of __FUNCTION__
* make some minor coding style fixes
* misc cleanups
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:42 -07:00
Bartlomiej Zolnierkiewicz
86467e7bc1
Staging: rtl8192su/ieee80211: remove unused ieee80211_wx_get_encode_ext()
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:42 -07:00
Bartlomiej Zolnierkiewicz
7d74deed7c
Staging: rtl8192su/ieee80211: remove unused IEEE80211_PRINT_STR()
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:42 -07:00
Bartlomiej Zolnierkiewicz
d643db940d
Staging: rtl8192su: remove NOT_YET ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:42 -07:00
Bartlomiej Zolnierkiewicz
793f96b585
Staging: rtl8192su/ieee80211: remove superfluous container_of definition
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:42 -07:00
Bartlomiej Zolnierkiewicz
fbe0051dbb
Staging: rtl8192su/ieee80211: remove OPENSUSE_SLED ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:42 -07:00
Bartlomiej Zolnierkiewicz
0766f233b6
Staging: rtl8192su: remove JOHN_DUMP[_TXDESC] ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:42 -07:00
Bartlomiej Zolnierkiewicz
5d9baea95f
Staging: rtl8192su: make private ieee80211 stack really private
...
* rename ieee80211_{init,exit}() to ieee80211_debug_{init,exit}()
* make private ieee80211 stack really private
* cleanup Makefile
* remove superfluous ieee80211_* defines
* remove superfluous EXPORT_SYMBOLs
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:42 -07:00
Bartlomiej Zolnierkiewicz
add6e6342d
Staging: rtl8192su: remove more unused files
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:41 -07:00
Bartlomiej Zolnierkiewicz
35c1b46291
Staging: rtl8192su: remove dead code
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:40 -07:00
Bartlomiej Zolnierkiewicz
9f7f00cd28
Staging: rtl8192su: remove unused files
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:39 -07:00
Bartlomiej Zolnierkiewicz
0f29f5871c
Staging: rtl8192su: remove RTL8192SU ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:39 -07:00
Bartlomiej Zolnierkiewicz
60083ee0c2
Staging: rtl8192su: remove RTL8192SE ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:39 -07:00
Bartlomiej Zolnierkiewicz
bd7b22c91a
Staging: rtl8192su: remove RTL8192SU_DISABLE_IQK ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:39 -07:00
Bartlomiej Zolnierkiewicz
8b804677f9
Staging: rtl8192su: remove RTL8192S_PREPARE_FOR_NORMAL_RELEASE ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:38 -07:00
Bartlomiej Zolnierkiewicz
68b6f506c6
Staging: rtl8192su: remove RTL8190_Download_Firmware_From_Header ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:38 -07:00
Bartlomiej Zolnierkiewicz
642ec04b78
Staging: rtl8192su: remove RTL8192SU_USB_PHY_TEST ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:38 -07:00
Bartlomiej Zolnierkiewicz
16fb15baea
Staging: rtl8192su: remove RTL8192SU_ASIC_VERIFICATION ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:38 -07:00
Bartlomiej Zolnierkiewicz
cd2c3c978f
Staging: rtl8192su: remove RTL8192SU_FPGA_2MAC_VERIFICATION ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:38 -07:00
Bartlomiej Zolnierkiewicz
1522987a7f
Staging: rtl8192su: remove RTL8192SU_FPGA_UNSPECIFIED_NETWORK ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:38 -07:00
Bartlomiej Zolnierkiewicz
3a63e8287d
Staging: rtl8192su: remove RTL8192SU_USE_PARAM_TXPWR ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:38 -07:00
Bartlomiej Zolnierkiewicz
385b330228
Staging: rtl8192su: remove DISABLE_BB_RF ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:38 -07:00
Bartlomiej Zolnierkiewicz
b8bd14b912
Staging: rtl8192su: remove RTL8192S_DISABLE_FW_DM ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:38 -07:00
Bartlomiej Zolnierkiewicz
f063ba768e
Staging: rtl8192su: remove RTL8192SU_DISABLE_CCK_RATE ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:38 -07:00
Bartlomiej Zolnierkiewicz
5b36d3bfbc
Staging: rtl8192su: remove USB_TX_DRIVER_AGGREGATION_ENABLE ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:37 -07:00
Bartlomiej Zolnierkiewicz
db28336458
Staging: rtl8192su: remove USB_RX_AGGREGATION_SUPPORT ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:37 -07:00
Bartlomiej Zolnierkiewicz
a7e3c1d621
Staging: rtl8192su: remove EEPROM_OLD_FORMAT_SUPPORT ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:37 -07:00
Bartlomiej Zolnierkiewicz
ee13be2f94
Staging: rtl8192su: remove USE_ONE_PIPE ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:37 -07:00
Bartlomiej Zolnierkiewicz
b8545591a9
Staging: rtl8192su: remove THOMAS_TURBO ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:37 -07:00
Bartlomiej Zolnierkiewicz
b81ad777b9
Staging: rtl8192su: remove CONFIG_RTL8192_PM ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:37 -07:00
Bartlomiej Zolnierkiewicz
622d501862
Staging: rtl8192su: remove ENABLE_DOT11D ifdefs
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:37 -07:00
Bartlomiej Zolnierkiewicz
9d7a9fa8be
Staging: rtl8192su: add TODO
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:28 -07:00
Bartlomiej Zolnierkiewicz
b4fcc8a24f
Staging: rtl8192su/ieee80211: switch to use <linux/ieee80211.h>
...
* s/WLAN_AUTH_LEAP/RTL_WLAN_AUTH_LEAP/g
* s/struct ieee80211_hdr/struct rtl_ieee80211_hdr/g
* switch to use <linux/ieee80211.h>
There should be no functional changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:28 -07:00
Bartlomiej Zolnierkiewicz
68da8fcd50
Staging: rtl8192su/ieee80211: remove unused _ReasonCode enums
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:28 -07:00
Bartlomiej Zolnierkiewicz
3bd709f28f
Staging: rtl8192su: remove support for older wireless extensions
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:28 -07:00
Bartlomiej Zolnierkiewicz
1ec9e48dbf
Staging: rtl8192su: remove kernel version compatibility wrappers
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:28 -07:00
Bartlomiej Zolnierkiewicz
f8450cf62c
Staging: rtl8192su: remove unused ieee80211_crypt.h
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:27 -07:00
Bartlomiej Zolnierkiewicz
2a7d71ad57
Staging: rtl8192su: remove duplicate dot11d.h and ieee80211.h includes
...
Always use includes from ieee80211/ subdirectory.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:27 -07:00
Bartlomiej Zolnierkiewicz
3380121b2a
Staging: rtl8192su/ieee80211: remove unused files
...
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-15 12:01:26 -07:00
Greg Kroah-Hartman
ce9c010c5c
Staging: rtl8192su: fix build error
...
This fixes a build error when selecting the rtl8192su driver as a
module. This has been reported by me, and the opensuse kernel developer
team, and I finally tracked it down.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-08-07 16:12:03 -07:00
Dan Aloni
91fca6da38
Staging: prevent rtl8192su from crashing dev_ioctl in SIOCGIWNAME
...
(adapted from the rtl8187se patch)
ieee80211_wx_get_name() ignores sizeof(wrqu->name) which is IFNAMSIZ (16), and
on certain conditions, the concatenated string will be larger than IFNAMSIZ
including the terminating zero.
length ("802.11" ++ "b" ++ "/g" ++ " linked" ++ "\x00") == 17
This fix uses strl{cpy,cat} in addition to the reduction of the total
possible length of the output string by a char.
It can be applied to 2.6.30-stable as well.
Signed-off-by: Dan Aloni <dan@aloni.org>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-07-12 13:21:45 -07:00
Bartlomiej Zolnierkiewicz
77b9288197
Staging: rtl8192su: convert to net_device_ops
...
commit e3804cbebb
removed
COMPAT_NET_DEV_OPS so this change is needed to make rtl8192su
buildable again.
Loosely based on Alexander's patch for rtl8187se, untested.
Cc: Alexander Beregalov <a.beregalov@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-07-12 13:21:45 -07:00
Julia Lawall
385269885f
Staging: rtl8192su: Correct use of ! and &
...
Correct priority problem in the use of ! and &.
The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/ )
// <smpl>
@@ expression E; constant C; @@
- !E & C
+ !(E & C)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-06-19 11:00:54 -07:00
Greg Kroah-Hartman
36dbd40139
Staging: rtl8192su: fix build warnings
...
This fixes some build warnings in the rtl8192su driver.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-06-19 11:00:53 -07:00
Jerry Chuang
5f53d8ca3d
Staging: add rtl8192SU wireless usb driver
...
Driver from Realtek for the Realtek RTL8192 USB wifi device
Based on the r8187 driver from Andrea Merello <andreamrl@tiscali.it> and
others.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-06-19 11:00:53 -07:00