summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e/rtllib_softmac.c
Commit message (Collapse)AuthorAgeFilesLines
* rtl8192e: create generic rtllib_debug.hSean MacLennan2011-11-301-1/+0
| | | | | | | | | | Rename rtl_debug.h to rtllib_debug.h. Source files should include rtllib.h if they are generic and rtl_core.h if they are r8192e specific. Files should never include both. 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>
* staging: rtl8192e: Use kmemdup rather than duplicating its implementationThomas Meyer2011-11-261-2/+2
| | | | | | | | | | | | | Use kmemdup rather than duplicating its implementation The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: rtl8192e: Use kzalloc rather than kmalloc v2Thomas Meyer2011-11-261-2/+1
| | | | | | | | | | | | | | Use kzalloc rather than kmalloc followed by memset with 0 This considers some simple cases that are common and easy to validate Note in particular that there are no ...s in the rule, so all of the matched code has to be contiguous The semantic patch that makes this change is available in scripts/coccinelle/api/alloc/kzalloc-simple.cocci. Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* rtl8192e: Don't copy huge struct by value (and make it const).Jesper Juhl2011-11-261-2/+2
| | | | | | | | | | | | rtllib_is_shortslot() takes one argument - a struct that's more than a kilobyte large. It should take a pointer instead of copying such a huge struct - and the argument might as well be declared 'const' now that we are at it, since it is not modified. This patch makes these changes. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: rtl8192e: Fix various problems noted by smatchLarry Finger2011-09-061-4/+2
| | | | | | | | | | | | | | | | Smatch reports the following problems: CHECK drivers/staging/rtl8192e/rtllib_softmac.c drivers/staging/rtl8192e/rtllib_softmac.c +3143 rtllib_softmac_free(4) info: redundant null check on ieee->pDot11dInfo calling kfree() CHECK drivers/staging/rtl8192e/rtllib_module.c drivers/staging/rtl8192e/rtllib_module.c +198 free_rtllib(6) info: redundant null check on ieee->pHTInfo calling kfree() CHECK drivers/staging/rtl8192e/rtl819x_TSProc.c drivers/staging/rtl8192e/rtl819x_TSProc.c +280 SearchAdmitTRStream(52) error: potential null derefence 'pRet'. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: rtl8192e: Fix sparse (non-endian) messages - Part ILarry Finger2011-08-251-69/+42
| | | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: rtl8192e: Remove MAC_FMT and MAC_ARG for %pMLarry Finger2011-08-251-1/+1
| | | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: rtl8192e: Cleanup checkpatch -f errors - Part XIVLarry Finger2011-08-251-1021/+965
| | | | | | | | | | With this patch, all of the checkpatch errors are fixed; however, only some of the lines that are too long were fixed. To complete the fixing of these warnings, the file rtllib_softmac.c will need refactoring. In addition, some of the variables may need renaming. Those changes can be deferred. 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-15/+8
| | | | | | | | | | | 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: Convert typedef cb_desc to struct cb_descLarry Finger2011-08-241-4/+4
| | | | | | | | 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-2/+2
| | | | | | | | | | 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 OCTET_STRING to struct octet_stringLarry 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 RT_HIGH_THROUGHPUT to struct rt_hi_throughputLarry Finger2011-08-231-2/+2
| | | | | | | | Remove typedef from struct. Rename struct. Rename uses. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with CUSTOMER_ID_INTEL_CMPC ↵Larry Finger2011-08-231-7/+0
| | | | | | and CONFIG_CRDA Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with FOR_ANDROID_X86 and ↵Larry Finger2011-08-231-5/+0
| | | | | | FOR_MOBLIN Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with ADHOC_11NLarry Finger2011-08-231-4/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with WIFI_TESTLarry Finger2011-08-231-4/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with RTK_DMP_PLATFORMLarry Finger2011-08-231-6/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with SUPPORT_USPDLarry Finger2011-08-231-8/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with ↵Larry Finger2011-08-231-8/+0
| | | | | | USB_TX_DRIVER_AGGREGATION_ENABLE Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove ifdefs that depend on ENABLE_DOT11DLarry Finger2011-08-231-22/+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 dead code from removal of ENABLE_TKIP11NLarry Finger2011-08-231-4/+0
| | | | 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 COMPATIBLE_WITH_RALINK_MESHLarry Finger2011-08-231-5/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with USB_USE_ALIGNMENTLarry Finger2011-08-231-117/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code involved with TO_DOLarry Finger2011-08-231-18/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code involved with TO_DO_LISTLarry Finger2011-08-231-3/+0
| | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
* staging: rtl8192e: Remove dead code associated with RTL8192SELarry Finger2011-08-231-53/+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-2/+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>
* rtl8192e: Remove occurences of #if 1Mike McCormack2011-08-231-2/+2
| | | | Signed-off-by: Mike McCormack <mikem@ring3k.org>
* rtl8192e: Remove extra ifdefsMike McCormack2011-08-231-48/+1
| | | | | Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Mike McCormack <mikem@ring3k.org>
* From: wlanfae <wlanfae@realtek.com>Larry Finger2011-08-231-0/+4150
[PATCH 1/8] rtl8192e: Import new version of driver from realtek Signed-off-by: wlanfae <wlanfae@realtek.com> Signed-off-by: Mike McCormack <mikem@ring3k.org> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> ---
OpenPOWER on IntegriCloud