aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2014-04-15staging: rtl8723au: Remove another unused prototypeJes Sorensen1-1/+0
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: Fold some resource allocation abstraction into their callersJes Sorensen3-35/+7
Fold rtw_os_recvbuf_resource_alloc23a() and rtw_os_recvbuf_resource_free23a() into the functions calling them. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: Remove unnecessary abstraction rtw_os_recv_resource_alloc23a()Jes Sorensen3-15/+0
No point calling a function to NULL a pointer that was just cleared in the malloc call. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: Remove unused function rtw_os_read_port23a()Jes Sorensen2-14/+0
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: Clean up namespace clashes with rtl8188eu driverJes Sorensen1-9/+9
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8188eu: os_intfs.c: Mark a couple of variables staticJes Sorensen2-7/+3
Mark these variables local to avoid namespace clash with other RTL drivers. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8188eu: usb_intf.c: No point processing an empty tableJes Sorensen1-29/+0
In addition, this would globally disable HT if one device in the system would mark it unsupported. If any device ended up requiring this, it should be handled on a per-instance basis. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: os_intfs.c: Declare a couple of local variables staticJes Sorensen2-7/+3
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: init_channel_set(): Restructure variable namesJes Sorensen1-52/+44
Shorten variable names allowing for fewer broken lines due to the large number of indents. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: mgmt_dispatcher23a(): Use struct ieee80211_mgmtJes Sorensen1-9/+9
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: OnAuth23a(): ieee80211.h-ifyJes Sorensen1-19/+15
Switch to using struct ieee80211_mgmt to obtain offsets. Again a bizarre +4 offset was applied for the IE scan which doesn't make sense, since this offset wasn't applied for the auth struct elements. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: OnAuth23aClient23a(): Clean up using struct ieee80211_mgmtJes Sorensen1-17/+13
Use 80211_mgmt to determine offsets within the received frame. This also removes a suspicious offset adjustment: offset = ieee80211_has_protected(hdr->frame_control) ? 4: 0; which didn't make any sense, since it was only applied to determining the auth, sequence number, and status, but wasn't applied to the location of the IEs. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: OnAssocRsp23a() use ieee80211_mgmt to obtain DAJes Sorensen1-3/+1
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: OnAction23a_back23a(): Use struct ieee8011_mgmt to parse action framesJes Sorensen1-5/+5
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: OnAction23a(): Use struct ieee80211_mgmt instead of hardcoded offsetsJes Sorensen1-7/+3
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: update_TSF() remove unused argument and move to rtw_mlme_ext.cJes Sorensen2-8/+7
This is only called from rtw_mlme_ext.c, so move it that and declare it static. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: clean up update_TSF()Jes Sorensen3-21/+8
Clean up and simplify update_TSF() using proper Linux functions and move it to rtw_mlme_ext.c which is the only user of it. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: OnBeacon23a() tidy up codeJes Sorensen1-77/+78
Clean up the excessive if() levels at the end, and use struct ieee80211_mgmt to calculate pointers passed on to check_assoc_AP23a() Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: rtw_mlme.c: remove commented out debug codeJes Sorensen1-5/+0
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: Remove buggy function _rtw_report_sec_ie()Jes Sorensen1-43/+0
This function was extremely buggy calling kmalloc(GFP_KERNEL) while holding a spin lock and then potentially overflowing the buffer it had allocated. Since the generated output wasn't used for anything, simply rip the whole thing out. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: OnProbeReq23a(): is_valid_p2p_probereq is always falseJes Sorensen1-8/+4
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: OnProbeReq23a(): Use struct ieee80211_mgmtJes Sorensen1-10/+12
Simplify parsing of probe request frame Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: OnAssocReq23a(): use ieee80211_mgmt to calculate offsetJes Sorensen1-2/+2
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: ioctl_cfg80211.c: Use eth_{zero,broadcast},addr()Jes Sorensen1-5/+3
Use kernel provided macros instead of own hacks. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: Remove some unused ieee80211 structsJes Sorensen1-47/+0
These are duplicated from the kernel headers and not used anymore Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: Remove unused ieee880211_is_empty_essid()Jes Sorensen2-20/+0
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: Remove unused dump_wpsie23a()Jes Sorensen2-26/+0
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: Remove struct rtw_ieee802_11_elems and related codeJes Sorensen3-297/+139
This removes the double content tracking of data from IE elements. The relevant code to validate IEs is moved to rtw_mlme_ext.c as this is the only place where it is used. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: OnAssocReq23a(): Use cfg80211_find_ie() to locate HT capsJes Sorensen1-3/+4
Use cfg80211 interface to search for HT capabilities. This was the last user of struct rtw_ieee802_11_elems, which can now be removed. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: OnAssocReq23a(): Don't check for presence of BSSID twiceJes Sorensen1-2/+5
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: OnAssocReq23a(): Simplify parsing crypto info from the IEJes Sorensen1-51/+52
This reduces the dependency of rtw_ieee802_11_parse_elems23a() which is only used in this function. Follow-on patches will remove the remaining dependencies and get rid of the function. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: update_bcn_vendor_spec_ie(): Go easy on those bracketsJes Sorensen1-10/+0
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: Remove multiple duplicate defines of the WPA OUIJes Sorensen6-14/+7
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: Remove unused for_each_ie() and dump_ies23a()Jes Sorensen2-25/+0
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: Remove obsolete rtw_get_wpa{2,}_ie23a() functionsJes Sorensen2-56/+0
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: rtw_cfg80211_set_wpa_ie(): Remove unused variable 'pos'Jes Sorensen1-2/+1
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: rtw_cfg80211_set_wpa_ie(): Use cfg80211_ APIJes Sorensen1-17/+17
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: rtw_check_bcn_info23a(): Use cfg80211 to find WPA infoJes Sorensen1-9/+8
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: rtw_check_bcn_info23a(): Remove excessive bracketsJes Sorensen1-35/+61
Remove excessive brackets and some general cleanups Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: rtw_get_cipher_info(): Convert to use cfg80211_* APIJes Sorensen1-11/+15
Use cfg80211_find_ie() and cfg80211_find_vendor_ie() rather than own hacks. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: Use const * for parsing wpa IEsJes Sorensen2-11/+12
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: start_bss_network(): Use cfg80211_find_ie()Jes Sorensen1-9/+11
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: update_sta_support_rate23a(): Use cfg80211_find_ie()Jes Sorensen1-13/+12
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: rtw_check_bcn_info23a(): Clean up code obfuscationJes Sorensen1-10/+4
There is no point doing a double check of the IE, either we found an WLAN_EID_SSID or we didn't. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: rtw_check_bcn_info23a(): Use cfg80211_find_ie()Jes Sorensen1-55/+62
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: Make rtw_check_bcn_info23() take a ieee80211_mgmt pointerJes Sorensen3-11/+18
Clean up the code by passing a struct ieee80211_mgmt pointer instead of a raw frame pointer. In addition check we receive a beacon frame, anything else here is an error. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: OnBeacon23a(): Use ieee80211_mgmt to calculate ie locationJes Sorensen1-14/+16
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: OnBeacon23a(): Use struct ieee80211_mgmtJes Sorensen1-6/+7
We always receive a struct ieee80211_mgmt frame here, using just ieee80211_hdr doesn't make sense. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: rtw_get_cur_max_rate23a(): use cfg80211_find_ie()Jes Sorensen1-5/+5
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-15staging: rtl8723au: rtw_update_protection23a(): Use cfg80211_find_ie()Jes Sorensen1-9/+8
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>