Commit Graph

442454 Commits

Author SHA1 Message Date
Jes Sorensen
95d412d830 staging: rtl8723au: rtl8723a_cmd.c: Fix up bad return types
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:32 -07:00
Jes Sorensen
a5681f99b4 staging: rtl8723au: rtl8723a_hal_init.c: Fix more messy return type abuse
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:31 -07:00
Jes Sorensen
c691ec3373 staging: rtl8723au: rtl8723a_phycfg.c: Use int for error return codes
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:31 -07:00
Jes Sorensen
5c195cc27b staging: rtl8723au: rtl8723au_xmit.c: Fixup messy return type usage
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:31 -07:00
Jes Sorensen
24ed8e4575 staging: rtl8723au: rtl8723au_xmit_tasklet(): Remove unnecessary variable init
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:31 -07:00
Jes Sorensen
e04cd3f5ed staging: rtl8723au: usb_halinit.c: Another u8 error code case
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:31 -07:00
Jes Sorensen
86c3e3f11e staging: rtl8723au: usb_intf.c: Fixup yet another round of u8 abuse for error type
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:31 -07:00
Jes Sorensen
9e2d06661a staging: rtl8723au: os_intfs.c: Fixup more u8/uint abuse for error return codes
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:30 -07:00
Jes Sorensen
16b9632da2 staging: rtl8732au: ioctl_cfg80211.c: Fix another case of u8 abuse for error return
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:30 -07:00
Jes Sorensen
8fd873d93d staging: rtl8723au: rtw_xmit.c: Be consistent in using int for error return type
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:30 -07:00
Jes Sorensen
f6fe0a414b staging: rtl8723au: rtw_wlan_util.c: Fix up random mixing of bool vs int
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:30 -07:00
Jes Sorensen
95ddd22553 staging: rtl8723au: rtw_sta_mgt.c: Clean up messy usage of return types
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:30 -07:00
Jes Sorensen
75f3f03956 staging: rtl8723au: rtw_security.c: Clean up mess of error return code types
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:29 -07:00
Jes Sorensen
6963248033 staging: rtl8723au: decryptor() use int to store error codes
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:29 -07:00
Jes Sorensen
d5789247bb staging: rtl8723au: Don't return true/false in unsigned int
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:29 -07:00
Jes Sorensen
f66e05d8fc staging: rtl8723au: rtw_mlme_ext.c: Use int to return error codes
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:29 -07:00
Jes Sorensen
7e761c5a2a staging: rtl8723au: rtw_ioctl_set.c: Fix up messy error code handling
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:29 -07:00
Jes Sorensen
43eeb8ee53 staging: rtl8723au: Remove unused usb_read_mem/usb_write_mem stubs
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:28 -07:00
Jes Sorensen
ad899b1219 staging: rtl8723au: Clean up error codes in IO functions
This also fixes up another messy case assuming _FAIL == false and
true == _SUCCESS

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:28 -07:00
Jes Sorensen
828373f996 staging: rtl8723au: Remove unused rtw_is_wps_ie23a()
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:28 -07:00
Jes Sorensen
44f3f16d8b staging: rtl8723au: Clean up error code mess in rtw_efuse.c
Use int to return error codes, and avoid mixing and matching
true/false with _FAIL/_SUCCESS at random.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:28 -07:00
Jes Sorensen
1ec8911b6d staging: rtl8723au: Make cmd and event handlers return int instead of u8
This is needed so we can eventually start passing around proper error
codes instead of the custom RTW ones.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:28 -07:00
Jes Sorensen
7271496bd1 staging: rtl8723au: Remove unused mp_custom_oid.h
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:28 -07:00
Jes Sorensen
60a2d48551 staging: rtl8723au: usb_vendor_req.h isn't used - remove it
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:27 -07:00
Jes Sorensen
25a931106f staging: rtl8723au: usb_osintf.h isn't used for anything - get rid of it
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:27 -07:00
Jes Sorensen
9385d861bd staging: rtl8723au: Get rid of rtl8723au_set_hal_ops() and get rid of hal_ops.h
Since rtl8723au_set_hal_ops() is just a kmalloc(), move it to
rtw_usb_if1_init() and fix the error handling to not leak memory.

This also allows us to get rid of hal_ops.h

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:27 -07:00
Jes Sorensen
02d50c22bd staging: rtl8723au: Remove sw led hal ops
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:27 -07:00
Jes Sorensen
10ce264649 staging: rtl8723au: Remove unused HAL interrupt function wrappers
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:27 -07:00
Jes Sorensen
d9edcafbdc staging: rtl8723au: Remove unused hal_power_on() wrapper
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:27 -07:00
Jes Sorensen
39f1a8ebba staging: rtl8723au: Make direct calls to GetHalDefVar8192CUsb()
Remove another round of HAL wrapping, and remove unused
SetHalDefVar8192CUsb().

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:26 -07:00
Jes Sorensen
ac4cbc68dc staging: rtl8723au: Pull update_ramask call out of HAL wrapper layer
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:26 -07:00
Jes Sorensen
638443dcf4 staging: rtl8723au: Call xmit/recv handlers directly instead of via HAL wrappers
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:26 -07:00
Jes Sorensen
b3d139a646 staging: rtl8723au: Disentangle recv/xmit_priv init/free from HAL wrappers
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:26 -07:00
Jes Sorensen
c77726971e staging: rtl8723au: Pull hal_init/deinit out of HAL wrapper layer
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:26 -07:00
Jes Sorensen
a4f6eb1e8e staging: rtl8723au: Remove a pile of unused EFUSE read/write functionality
All this code was only pulled in since it was registered in the HAL
wrapper interface, despite it never being called. It also removes the
lasts pieces of code from rtl8723a_set_hal_ops(), so remove it as
well.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:25 -07:00
Jes Sorensen
b2e68046fe staging: rtl8723au: Remove first half of EFUSE functions from HAL wrappers
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:25 -07:00
Jes Sorensen
dbe9849cd4 staging: rtl8723au: Disentangle set_odm_var() from the HAL wrappers
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:25 -07:00
Jes Sorensen
de9a5f01b2 staging: rtl8723au: Get rid of unused rtw_hal_get_odm_var23()
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:25 -07:00
Jes Sorensen
1ec69343ee staging: rtl8723au: Disentangle rtl8723a_add_rateatid() from HAL
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:25 -07:00
Jes Sorensen
88715bcdb1 staging: rtl8723au: Disentangle beacon register settings from the HAL wrappers
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:25 -07:00
Jes Sorensen
daf1fe8053 staging: rtl8732au: Remove some unused hal data pointers
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:24 -07:00
Jes Sorensen
8a6f555fed staging: rtl8723au: Call bandwidth and channel setting handlers directly
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:24 -07:00
Jes Sorensen
82ccb59724 staging: rtl8723au: Disentangle chip_configure from HAL wrappers
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:24 -07:00
Jes Sorensen
db20a02baf staging: rtl8723au: We love wrappers!
Get rid of pointless wrapper around a simple kfree()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:24 -07:00
Jes Sorensen
1aaa37613f staging: rtl8723au: Remove HAL wrappers about USB init/deinit
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:24 -07:00
Jes Sorensen
44e621c7a6 staging: rtl8723au: Remove HAL wrappers around read_chip_version
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:23 -07:00
Jes Sorensen
5d9edb5663 staging: rtl8723au: Remove unused HAL wrappers around PHY register read/write calls
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:23 -07:00
Jes Sorensen
369074f071 staging: rtl8723au: Remove HAL notch_filter wrappers
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:23 -07:00
Jes Sorensen
a7a983ca20 staging: rtl8723au: Remove unused hal_reset_security_engine code
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:23 -07:00
Jes Sorensen
b7c19c276a staging: rtl8723au: Get rid of sreset related HAL clutter
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-16 11:34:22 -07:00