summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8821ae
Commit message (Collapse)AuthorAgeFilesLines
* staging: rtl8821ae: remove driverGreg Kroah-Hartman2014-09-2973-70875/+0
| | | | | | | | There is now a "real" driver in the wireless tree for this hardware device, so remove the staging driver as it is no longer needed. Reported-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: rtl8821ae: fix sparse warning for static declarationsMathieu OTHACEHE2014-09-281-9/+9
| | | | | | | | | | | | | | | | This patch fixes the following sparse warnings: drivers/staging/rtl8821ae/pci.c:52:4: warning: symbol '_rtl_mac_to_hwqueue' was not declared. Should it be static? drivers/staging/rtl8821ae/pci.c:365:6: warning: symbol 'rtl_pci_check_buddy_priv' was not declared. Should it be static? drivers/staging/rtl8821ae/pci.c:409:6: warning: symbol 'rtl_pci_get_linkcontrol_field' was not declared. Should it be static? drivers/staging/rtl8821ae/pci.c:1748:6: warning: symbol 'rtl_pci_deinit' was not declared. Should it be static? drivers/staging/rtl8821ae/pci.c:1763:5: warning: symbol 'rtl_pci_init' was not declared. Should it be static? drivers/staging/rtl8821ae/pci.c:1780:5: warning: symbol 'rtl_pci_start' was not declared. Should it be static? drivers/staging/rtl8821ae/pci.c:1814:6: warning: symbol 'rtl_pci_stop' was not declared. Should it be static? drivers/staging/rtl8821ae/pci.c:2105:21: warning: symbol 'hw_export' was not declared. Should it be static? Signed-off-by: Mathieu OTHACEHE <m.othacehe@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: rtl8821ae: Fixes unnecessary return warning.Gulsah Kose2014-09-231-2/+0
| | | | | | | | | This patch fixes "void function return statements are not generally useful" checkpatch.pl warning in base.c Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com> Acked-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: rtl8821ae: Fix warnings of no space before tabs.Aybuke Ozdemir2014-09-191-8/+8
| | | | | | | | | This patch fixes these warning messages found by checkpatch.pl: WARNING: please, no space before tabs. Signed-off-by: Aybuke Ozdemir <aybuke.147@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: rtl8821ae: Fix "foo * bar" warning.Aybuke Ozdemir2014-09-191-1/+1
| | | | | | | | | This patch fixes these error messages found by checkpatch.pl: ERROR: "foo* bar" should be "foo *bar" Signed-off-by: Aybuke Ozdemir <aybuke.147@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: rtl8821ae: Remove space after unary operator in efuse.cFabien Malfoy2014-09-191-8/+8
| | | | | | | Several pointer declaration syntax have been fixed to match the coding style. Signed-off-by: Fabien Malfoy <fabien.malfoy@laposte.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* drivers: staging: rtl8821ae: Fix '"(foo*)" should be "(foo *)"' errorsGreg Donald2014-09-088-28/+28
| | | | | | | Fix checkpatch.pl '"(foo*)" should be "(foo *)"' errors Signed-off-by: Greg Donald <gdonald@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* drivers: staging: rtl8821ae: Fix "space required before that '*'" errorsGreg Donald2014-09-086-20/+20
| | | | | | | Fix checkpatch.pl "space required before that '*'" errors Signed-off-by: Greg Donald <gdonald@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: rtl8821ae: base: add missing blank line after declarationAn Ha2014-09-081-0/+2
| | | | | | | Add a missing blank line after declaration to fix coding style issue. Signed-off-by: An Ha <zero579911@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: rtl8821ae: hal_bt_coexist: add a blank newlineAn Ha2014-09-081-0/+1
| | | | | | | Fix coding style issue which requires a blank line after declarations. Signed-off-by: An Ha <zero579911@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: rtl8821ae: hal_bt_coexist: fix curly brace placementAn Ha2014-09-081-13/+8
| | | | | | | | | | Fix coding style issue where the if statement unnecessarily uses curly braces for one line statements and where the else conditional statement should follow the closing curly brace '}'. Also, the open curly brace '{' should be on the same line as the if statement. Signed-off-by: An Ha <zero579911@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: rtl8821ae: hal_bt_coexist: fix pointer placement coding style issueAn Ha2014-09-081-1/+1
| | | | | | | | Fix pointer placement coding style issue, where using "foo *" is preferable over "foo*". Signed-off-by: An Ha <zero579911@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: rtl8821ae: hal_bt_coexist: add/remove spacesAn Ha2014-09-081-42/+42
| | | | | | | | | | | | Fix coding style issue which requires a space before the open curly brace '{', after the open parenthesis '(', after a comma, and after the equal sign '=' in an assignment. Also, remove unnecessary whitespace after open parenthesis '(' and before a quoted newline. Signed-off-by: An Ha <zero579911@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: rtl8821ae: hal_bt_coexist: fix commenting styleAn Ha2014-09-081-1/+1
| | | | | | | Fix commenting style from C99 comments to C89 comments Signed-off-by: An Ha <zero579911@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: rtl8821ae: Fix sparse warning by making functions static.Andreas Schlick2014-09-061-3/+3
| | | | | Signed-off-by: Andreas Schlick <ninox@posteo.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* drivers: staging: rtl8821ae: Fix spaces required around that '<' errorsGreg Donald2014-08-303-11/+11
| | | | | | | Fix checkpatch.pl spaces required around that '<' errors Signed-off-by: Greg Donald <gdonald@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: rtl8821ae: fix sparse warning for static declarations in ↵Hoang Tran2014-08-301-2/+3
| | | | | | | | | | | | rtl8821ae/stats.c This patch fixes the following sparse warnings in rtl8821ae/stats.c drivers/staging/rtl8821ae/stats.c:62:6: warning: symbol 'rtl_translate_todbm' was not declared. Should it be static? drivers/staging/rtl8821ae/stats.c:101:6: warning: symbol 'rtl_process_ui_rssi' was not declared. Should it be static? Signed-off-by: Hoang Tran <hoangtran.gwr@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: rtl8821ae: fix %d confusingly prefixed with 0x in format stringsHans Wennborg2014-08-161-3/+3
| | | | | Signed-off-by: Hans Wennborg <hans@hanshq.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: use pci_zalloc_consistentJoe Perches2014-08-081-24/+12
| | | | | | | | | | | | Remove the now unnecessary memset too. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Lior Dotan <liodot@gmail.com> Cc: Christopher Harrer <charrer@alacritech.com> Cc: Forest Bond <forest@alittletooquiet.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* staging: rtl8821ae: fixed a space coding style issueSylvain Calador2014-07-271-1/+1
| | | | | | | Fixed a coding style issue. Signed-off-by: Sylvain Calador <sylvain.calador@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: rtl8821ae: delete unneeded lines in cam.cJoerg C. Meyer2014-07-151-7/+0
| | | | | | | This is a patch to the cam.c file that removes some unneeded lines of commented-out code Signed-off-by: Joerg C. Meyer <joerg@meyer.homedns.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: r8821ae: avoid leaking format stringKees Cook2014-07-101-1/+1
| | | | | | | | This make sure a format string cannot leak into the work queue name nor the printk buffer. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: rtl8821ae: Pass large struct by const referenceRasmus Villemoes2014-07-083-4/+4
| | | | | | | | | | | struct rtl_stats is rather huge (152 bytes), and since rtl8812ae_rx_command_packet_handler() does not modify it, it might as well be passed by const reference. Reported by Coverity: CID 1167285 Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* drivers/staging/rtl8821ae/rtl8821ae/hal_btc.c: remove unnecessary null test ↵Fabian Frederick2014-06-291-2/+1
| | | | | | | | | | | | | before kfree Fix checkpatch warning: WARNING: kfree(NULL) is safe this check is probably not required Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com> Cc: devel@driverdev.osuosl.org Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* drivers/staging/rtl8821ae: replace magic number by macroRickard Strandqvist2014-06-262-1/+2
| | | | | | | | For consistency with other drivers, replace a magic number by a macro. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Reviewed-by: Peter Wu <peter@lekensteyn.nl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* drivers/staging/rtl8821ae/rtl8821ae: Remove dead codeRasmus Villemoes2014-06-261-14/+0
| | | | | | | | This is all #if 0'ed out, and it contains some rather weird stuff (post-increment of a bool, for example). Nuke it. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* v2 staging: translates 3 comments into english in HalBtc8812a1Ant.cToralf Förster2014-06-201-7/+7
| | | | | Signed-off-by: Toralf Förster <toralf.foerster@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: Remove useless "default N" linesPaul Bolle2014-06-191-1/+0
| | | | | | | | | | Two Kconfig entries default to (uppercase) "N". It was clearly intended to use "default n". But since (lowercase) "n" is the default anyway, these lines might as well be removed. Reported-by: Martin Walch <walch.martin@web.de> Signed-off-by: Paul Bolle <pebolle@tiscali.nl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: rtl8821ae: fix sparse warning for static declarationsMarcus Farkas2014-06-191-2/+4
| | | | | | | | | This commit fixes the following sparse warnings in ps.c: - 702: warning: symbol 'rtl_p2p_noa_ie' was not declared. Should it be static? - 802: warning: symbol 'rtl_p2p_action_ie' was not declared. Should it be static? Signed-off-by: Marcus Farkas <marcus.farkas@finitebox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds2014-06-121-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pull networking updates from David Miller: 1) Seccomp BPF filters can now be JIT'd, from Alexei Starovoitov. 2) Multiqueue support in xen-netback and xen-netfront, from Andrew J Benniston. 3) Allow tweaking of aggregation settings in cdc_ncm driver, from Bjørn Mork. 4) BPF now has a "random" opcode, from Chema Gonzalez. 5) Add more BPF documentation and improve test framework, from Daniel Borkmann. 6) Support TCP fastopen over ipv6, from Daniel Lee. 7) Add software TSO helper functions and use them to support software TSO in mvneta and mv643xx_eth drivers. From Ezequiel Garcia. 8) Support software TSO in fec driver too, from Nimrod Andy. 9) Add Broadcom SYSTEMPORT driver, from Florian Fainelli. 10) Handle broadcasts more gracefully over macvlan when there are large numbers of interfaces configured, from Herbert Xu. 11) Allow more control over fwmark used for non-socket based responses, from Lorenzo Colitti. 12) Do TCP congestion window limiting based upon measurements, from Neal Cardwell. 13) Support busy polling in SCTP, from Neal Horman. 14) Allow RSS key to be configured via ethtool, from Venkata Duvvuru. 15) Bridge promisc mode handling improvements from Vlad Yasevich. 16) Don't use inetpeer entries to implement ID generation any more, it performs poorly, from Eric Dumazet. * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1522 commits) rtnetlink: fix userspace API breakage for iproute2 < v3.9.0 tcp: fixing TLP's FIN recovery net: fec: Add software TSO support net: fec: Add Scatter/gather support net: fec: Increase buffer descriptor entry number net: fec: Factorize feature setting net: fec: Enable IP header hardware checksum net: fec: Factorize the .xmit transmit function bridge: fix compile error when compiling without IPv6 support bridge: fix smatch warning / potential null pointer dereference via-rhine: fix full-duplex with autoneg disable bnx2x: Enlarge the dorq threshold for VFs bnx2x: Check for UNDI in uncommon branch bnx2x: Fix 1G-baseT link bnx2x: Fix link for KR with swapped polarity lane sctp: Fix sk_ack_backlog wrap-around problem net/core: Add VF link state control policy net/fsl: xgmac_mdio is dependent on OF_MDIO net/fsl: Make xgmac_mdio read error message useful net_sched: drr: warn when qdisc is not work conserving ...
| * Merge branch 'master' of ↵John W. Linville2014-05-021-11/+3
| |\ | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
| | * mac80211: add vif to flush callEmmanuel Grumbach2014-04-091-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow the low level driver to make decision based on the vif such as queues etc... Since the vif might be NULL, we can't add it to the tracing functions. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> [fix staging rtl8821ae driver] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* | | staging: rtl8821ae: stats.c: Remove version specific codeSachin Kamat2014-05-271-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | The code should be for the current kernel version. Remove conditional version based code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: rtl8821ae: trx.h: Remove version specific codeSachin Kamat2014-05-271-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | The code should be for the current kernel version. Remove conditional version based code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: rtl8821ae: trx.c: Remove version specific codeSachin Kamat2014-05-271-45/+0
| | | | | | | | | | | | | | | | | | | | | | | | The code should be for the current kernel version. Remove conditional version based code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: rtl8821ae: sw.c: Remove version specific codeSachin Kamat2014-05-271-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | The code should be for the current kernel version. Remove conditional version based code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: rtl8821ae: regd.h: Remove version specific codeSachin Kamat2014-05-271-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | The code should be for the current kernel version. Remove conditional version based code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: rtl8821ae: regd.c: Remove version specific codeSachin Kamat2014-05-271-52/+0
| | | | | | | | | | | | | | | | | | | | | | | | The code should be for the current kernel version. Remove conditional version based code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: rtl8821ae: rc.c: Remove version specific codeSachin Kamat2014-05-271-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | The code should be for the current kernel version. Remove conditional version based code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: rtl8821ae: ps.c: Remove version specific codeSachin Kamat2014-05-271-26/+0
| | | | | | | | | | | | | | | | | | | | | | | | The code should be for the current kernel version. Remove conditional version based code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: rtl8821ae: pci.h: Remove version specific codeSachin Kamat2014-05-271-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | The code should be for the current kernel version. Remove conditional version based code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: rtl8821ae: pci.c: Remove version specific codeSachin Kamat2014-05-271-120/+0
| | | | | | | | | | | | | | | | | | | | | | | | The code should be for the current kernel version. Remove conditional version based code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: rtl8821ae: efuse.c: Remove version specific codeSachin Kamat2014-05-271-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | The code should be for the current kernel version. Remove conditional version based code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: rtl8821ae: debug.c: Remove version specific codeSachin Kamat2014-05-271-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | The code should be for the current kernel version. Remove conditional version based code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: rtl8821ae: core.c: Remove version specific codeSachin Kamat2014-05-271-154/+2
| | | | | | | | | | | | | | | | | | | | | | | | The code should be for the current kernel version. Remove conditional version based code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: rtl8821ae: compat.h: Remove version specific codeSachin Kamat2014-05-271-57/+0
| | | | | | | | | | | | | | | | | | | | | | | | The code should be for the current kernel version. Remove conditional version based code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: rtl8821ae: cam.c: Remove version specific codeSachin Kamat2014-05-271-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | The code should be for the current kernel version. Remove conditional version based code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: rtl8821ae: base.c: Remove version specific codeSachin Kamat2014-05-271-45/+1
| | | | | | | | | | | | | | | | | | | | | | | | The code should be for the current kernel version. Remove conditional version based code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: r8821ae: Fix potential problem with rate control registrationLarry Finger2014-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The zero day testing facility reported a problem with duplicate registration of the rate-control algorithm. Although not yet reported, this driver needs the same fix. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | | staging: rtl8821ae: add static for local symbols in rtl_btc.cKonrad Zapalowicz2014-05-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes the sparse warning: "warning: symbol 'X' was not declared. Should it be static?" Where the X is one of the following rtl_btc_operation Signed-off-by: Konrad Zapalowicz <bergo.torino@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>