summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e/rtl_core.c
Commit message (Collapse)AuthorAgeFilesLines
* rtl8192e: cleanup rtl_debug.hSean MacLennan2011-11-301-17/+1
| | | | | | | | | | | | This patch cleans up rtl_debug.h by removing all the unused defines and stub functions. The changes to rtl_core.c are just to remove the deleted stub function calls. The changes to rtl_debug.c are functions that are never called. Signed-off-by: Sean MacLennan <seanm@seanm.ca> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* rtl8192e: drop alternate code paths for CONFIG_PM_RTLStefan Lippers-Hollmann2011-11-261-2/+0
| | | | | | | It has always been enabled unconditionally by ccflags-y. Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* rtl8192e: use HAVE_NET_DEVICE_OPS unconditionallyStefan Lippers-Hollmann2011-11-261-12/+0
| | | | | | | | Mainline provides NET_DEVICE_OPS, remove alternate code paths and now obsolete defines from ccflags-y. Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: rtl8192e: off by one in rtl8192_get_channel_map()Dan Carpenter2011-09-261-1/+1
| | | | | | | | | | COUNTRY_CODE_MAX is not a valid country code. We're off by one here. This gets passed to Dot11d_Channelmap() where it's used as an offset into the ChannelPlan[] array. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: rtl8192e: Fix smatch error and warning in rtl_core.cLarry Finger2011-09-061-34/+24
| | | | | | | | | | | | | Smatch shows the following errors: CHECK drivers/staging/rtl8192e/rtl_core.c drivers/staging/rtl8192e/rtl_core.c +600 rtl8192_qos_activate(7) warn: variable dereferenced before check 'priv' drivers/staging/rtl8192e/rtl_core.c +1345 rtl8192_init(40) warn: 'dev->irq' was not released on error drivers/staging/rtl8192e/rtl_core.c +2120 rtl8192_alloc_rx_desc_ring(43) error: potential null derefence 'entry'. drivers/staging/rtl8192e/rtl_core.c +3010 rtl8192_pci_probe(153) warn: 'pmem_start' was not released on error Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: rtl8192e: Remove dead code involving MOVE_INTO_HANDLERLarry Finger2011-09-061-22/+0
| | | | | | | | | File rtl_core.c contains the statement "#define MOVE_INTO_HANDLER". As a result, everything inside an "ifndef MOVE_INTO_HANDLER" is dead code and can be removed. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Merge git://git.kernel.org/pub/scm/linux/kernel/git/lwfinger/r8192E into ↵Greg Kroah-Hartman2011-08-261-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | staging-next * git://git.kernel.org/pub/scm/linux/kernel/git/lwfinger/r8192E: (25 commits) rtl8192e: update for ndo_set_multicast_list removal. staging: rtl8192e: Add endian checking switch to Makefile staging: rtl8192e: Fix sparse (non-endian) warnings - Part II staging: rtl8192e: Fix sparse (non-endian) messages - Part I staging: rtl8192e: Remove MAC_FMT and MAC_ARG for %pM staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part XVIII staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part XVII staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part XVI staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part XV staging: rtl8192e: Cleanup checkpatch -f errors - Part XIV staging: rtl8192e: Cleanup checkpatch -f errors - Part XIII staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part XII staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part XI staging: rtl8192e: Cleanup checkpatch -f errors - Part X staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part IX staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part VIII staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part VII staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part VI staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part V staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part IV ...
| * rtl8192e: update for ndo_set_multicast_list removal.Stephen Rothwell2011-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | After merging the staging tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/staging/rtl8192e/rtl_core.c:2917:2: error: unknown field 'ndo_set_multicast_list' specified in initializer Caused by commit 94a799425eee ("From: wlanfae <wlanfae@realtek.com>" - really "[PATCH 1/8] rtl8192e: Import new version of driver from realtek" Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
| * staging: rtl8192e: Fix sparse (non-endian) warnings - Part IILarry Finger2011-08-251-101/+43
| | | | | | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
| * staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part VIIILarry Finger2011-08-251-1169/+1180
| | | | | | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
| * staging: rtl8192e: Modify time handlingLarry Finger2011-08-251-7/+4
| | | | | | | | | | | | | | | | | | | | In several places, the driver keeps times (in jiffies) in two 32-bit quantities. In the rtl8192_hw_to_sleep(), there is an error in the calculation of the difference between two 64-bit quantities. Rather than fix that error, I have converted to a single 64-bit number. That makes the code be much cleaner and clearer. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* | staging: rtl8192e: Fix sparse (non-endian) warnings - Part IILarry Finger2011-08-251-101/+43
| | | | | | | | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* | staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part VIIILarry Finger2011-08-251-1169/+1180
| | | | | | | | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* | staging: rtl8192e: Modify time handlingLarry Finger2011-08-251-7/+4
| | | | | | | | | | | | | | | | | | | | | | In several places, the driver keeps times (in jiffies) in two 32-bit quantities. In the rtl8192_hw_to_sleep(), there is an error in the calculation of the difference between two 64-bit quantities. Rather than fix that error, I have converted to a single 64-bit number. That makes the code be much cleaner and clearer. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* | staging: rtl8192e: using vmalloc/vfree requires including vmalloc.hStephen Rothwell2011-08-251-0/+1
|/ | | | | | Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: rtl8192e: Convert typedef RT_RF_POWER_STATE to enum rt_rf_power_stateLarry Finger2011-08-241-3/+3
| | | | | | | | Remove typedef from enum. Rename enum. Rename uses. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Convert typedef RESET_TYPE to enum reset_typeLarry Finger2011-08-241-6/+6
| | | | | | | | Remove typedef from enum. Rename enum. Rename uses. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Convert typedef r8192_priv to struct r8192_privLarry Finger2011-08-241-7/+7
| | | | | | | | Remove typedef from struct. Rename struct. Rename uses. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Convert typedef Stats to struct rt_statsLarry Finger2011-08-241-1/+1
| | | | | | | | Remove typedef from struct. Rename struct. Rename uses. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Convert typedef cb_desc to struct cb_descLarry Finger2011-08-241-9/+9
| | | | | | | | Remove typedef from struct. Rename struct. Rename uses. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Convert typedef rt_firmware to struct rt_firmwareLarry Finger2011-08-241-2/+2
| | | | | | | | Remove typedef from struct. Rename struct. Rename uses. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Convert typedef rx_desc to struct rx_descLarry Finger2011-08-241-3/+3
| | | | | | | | Remove typedef from struct. Rename struct. Rename uses. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Convert typedef tx_desc_cmd to struct tx_desc_cmdLarry Finger2011-08-241-2/+2
| | | | | | | | Remove typedef from struct. Rename struct. Rename uses. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Convert typedef tx_desc to struct tx_descLarry Finger2011-08-241-6/+6
| | | | | | | | Remove typedef from struct. Rename struct. Rename uses. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Convert typedef SW_CAM_TABLE to struct sw_cam_tableLarry Finger2011-08-241-2/+2
| | | | | | | | Remove typedef from struct. Rename struct. Rename uses. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Convert typedef RT_POWER_SAVE_CONTROL to struct ↵Larry Finger2011-08-241-4/+4
| | | | | | | | | | rt_pwr_save_ctrl Remove typedef from struct. Rename struct. Rename uses. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Convert typedef LOG_INTERRUPT_8190_T to struct log_int_8190Larry Finger2011-08-241-1/+1
| | | | | | | | Remove typedef from struct. Rename struct. Rename uses. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Convert typedef TX_FWINFO_8190PCI to struct tx_fwinfo_8190pciLarry Finger2011-08-241-1/+1
| | | | | | | | Remove typedef from struct. Rename struct. Rename uses. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Fix unload/reload problemLarry Finger2011-08-231-0/+5
| | | | | | | The driver is not releasing the memory region that was mapped. As a result, the driver cannot be unloaded and reloaded. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with CONFIG_RTL_RFKILLLarry Finger2011-08-231-16/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove LOOP_TEST as parameterLarry Finger2011-08-231-7/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with CONFIG_FW_SETCHANLarry Finger2011-08-231-4/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with CONFIG_RTLWIFI_DEBUGFSLarry Finger2011-08-231-3/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with _ENABLE_SW_BEACONLarry Finger2011-08-231-14/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with CONFIG_64BIT_DMALarry Finger2011-08-231-11/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with IRQF_SHAREDLarry Finger2011-08-231-4/+0
| | | | | | This symbol is defined in the kernel. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with CONFIG_CFG_80211Larry Finger2011-08-231-13/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with BUILT_IN_CRYPTOLarry Finger2011-08-231-26/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with CUSTOMER_ID_INTEL_CMPC ↵Larry Finger2011-08-231-2/+0
| | | | | | and CONFIG_CRDA Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with BUILT_IN_MSHCLASSLarry Finger2011-08-231-10/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove ifdefs that depend on ENABLE_DOT11DLarry Finger2011-08-231-18/+0
| | | | | | | This configuration parameter is selected in the Makefile, thus the conditional code can be removed. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove references to ENABLE_GPIO_RADIO_CTLLarry Finger2011-08-231-6/+0
| | | | | | This configuration variable is set in the make file. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with PF_SYNCTHREADLarry Finger2011-08-231-4/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with CONFIG_ASPM_OR_D3Larry Finger2011-08-231-119/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with CONFIG_MPLarry Finger2011-08-231-25/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Fix kernel panics due to RX skb allocation failuresLarry Finger2011-08-231-25/+19
| | | | | | | | | | | This driver uses RX skb's of O(2), thus it is possible for memory fragmentation to prevent the allocation of a new one to replace a newly-received buffer. When such a failure occurs, the kernel panics. The fix is to drop an incoming packet whenever such an allocation fails. This fix matches the one done in rtlwifi for other Realtek PCI devices. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove internal references to RTL8192ELarry Finger2011-08-231-2/+0
| | | | | | | Now that the code can only generate a driver for RTL8192E, the internal ifdef's are no longer needed. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with RTL8192CELarry Finger2011-08-231-66/+1
| | | | | | | The vendor code will generate several different drivers. As the RTL8192CE is covered by a mac80211 driver in mainline, eliminate that code here. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with RTL8192SELarry Finger2011-08-231-183/+0
| | | | | | | The vendor code will generate several different drivers. As the RTL8192SE is covered by a mac80211 driver in mainline, eliminate that code heere. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove code dependent on RTL8190PLarry Finger2011-08-231-62/+0
| | | | | | | The vendor code can conditionally generate drivers for a number of devices. Remove any code that depends on RTL8190P being set. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
OpenPOWER on IntegriCloud