Jes Sorensen
07d2c3b841
staging: rtl8723au: OnAssocReq23a(): use ieee80211_mgmt to calculate offset
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:04 -07:00
Jes Sorensen
43c34be130
staging: rtl8723au: ioctl_cfg80211.c: Use eth_{zero,broadcast},addr()
...
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-15 11:04:04 -07:00
Jes Sorensen
29f79e057f
staging: rtl8723au: Remove some unused ieee80211 structs
...
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-15 11:04:04 -07:00
Jes Sorensen
30947bbc27
staging: rtl8723au: Remove unused ieee880211_is_empty_essid()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:04 -07:00
Jes Sorensen
5951a5c1b8
staging: rtl8723au: Remove unused dump_wpsie23a()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:04 -07:00
Jes Sorensen
7e07583247
staging: rtl8723au: Remove struct rtw_ieee802_11_elems and related code
...
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-15 11:04:03 -07:00
Jes Sorensen
57ed7bbf7b
staging: rtl8723au: OnAssocReq23a(): Use cfg80211_find_ie() to locate HT caps
...
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-15 11:04:03 -07:00
Jes Sorensen
49ae9a5c69
staging: rtl8723au: OnAssocReq23a(): Don't check for presence of BSSID twice
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:03 -07:00
Jes Sorensen
7d6925306c
staging: rtl8723au: OnAssocReq23a(): Simplify parsing crypto info from the IE
...
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-15 11:04:03 -07:00
Jes Sorensen
ab6fb7a503
staging: rtl8723au: update_bcn_vendor_spec_ie(): Go easy on those brackets
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:03 -07:00
Jes Sorensen
7964eba0d8
staging: rtl8723au: Remove multiple duplicate defines of the WPA OUI
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:03 -07:00
Jes Sorensen
daa5d2f867
staging: rtl8723au: Remove unused for_each_ie() and dump_ies23a()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:02 -07:00
Jes Sorensen
fcff60e920
staging: rtl8723au: Remove obsolete rtw_get_wpa{2,}_ie23a() functions
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:02 -07:00
Jes Sorensen
9bf29cb940
staging: rtl8723au: rtw_cfg80211_set_wpa_ie(): Remove unused variable 'pos'
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:02 -07:00
Jes Sorensen
58aedb498f
staging: rtl8723au: rtw_cfg80211_set_wpa_ie(): Use cfg80211_ API
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:02 -07:00
Jes Sorensen
f88ca60404
staging: rtl8723au: rtw_check_bcn_info23a(): Use cfg80211 to find WPA info
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:02 -07:00
Jes Sorensen
c37618360e
staging: rtl8723au: rtw_check_bcn_info23a(): Remove excessive brackets
...
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-15 11:04:01 -07:00
Jes Sorensen
d7f0369827
staging: rtl8723au: rtw_get_cipher_info(): Convert to use cfg80211_* API
...
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-15 11:04:01 -07:00
Jes Sorensen
95c4345abf
staging: rtl8723au: Use const * for parsing wpa IEs
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:01 -07:00
Jes Sorensen
731f9da74b
staging: rtl8723au: start_bss_network(): Use cfg80211_find_ie()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:01 -07:00
Jes Sorensen
bf35027425
staging: rtl8723au: update_sta_support_rate23a(): Use cfg80211_find_ie()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:01 -07:00
Jes Sorensen
82695d5ca3
staging: rtl8723au: rtw_check_bcn_info23a(): Clean up code obfuscation
...
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-15 11:04:01 -07:00
Jes Sorensen
3ffa4355a2
staging: rtl8723au: rtw_check_bcn_info23a(): Use cfg80211_find_ie()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:00 -07:00
Jes Sorensen
c146551f1a
staging: rtl8723au: Make rtw_check_bcn_info23() take a ieee80211_mgmt pointer
...
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-15 11:04:00 -07:00
Jes Sorensen
f96355b8f0
staging: rtl8723au: OnBeacon23a(): Use ieee80211_mgmt to calculate ie location
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:00 -07:00
Jes Sorensen
ee79b56c0e
staging: rtl8723au: OnBeacon23a(): Use struct ieee80211_mgmt
...
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-15 11:04:00 -07:00
Jes Sorensen
f0fcc4f0fa
staging: rtl8723au: rtw_get_cur_max_rate23a(): use cfg80211_find_ie()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:00 -07:00
Jes Sorensen
4bf954b2f9
staging: rtl8723au: rtw_update_protection23a(): Use cfg80211_find_ie()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:04:00 -07:00
Jes Sorensen
e0facfa97c
staging: rtl8723au: Make mlme_handlers and action_handlers return int
...
In addition, make them all static and move the prototypes to
rtw_mlme_ext.c.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:59 -07:00
Jes Sorensen
da290c5461
staging: rtl8723au: OnAssocReq23a(): Clean up and use more ieee80211.h
...
This converts it to use struct ieee80211_mgmt and cfg80211_find_ie().
In addition fix a potential buffer overrun in the last loop searching
through list WLAN_EID_VENDOR_SPECIFIC elements.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:59 -07:00
Jes Sorensen
858e665840
staging: rtl8723au: issue_probersp23a(): various cleanups
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:59 -07:00
Jes Sorensen
cfe4ecdc80
staging: rtl8723au: issue_asocrsp23a(): Use cfg80211_find_ie() and cleanups
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:59 -07:00
Jes Sorensen
0b2b676d59
staging: rtl8723au: issue_assocreq23a(): General cleanups and use cfg80211_find_ie()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:59 -07:00
Jes Sorensen
78b7d04719
staging: rtl8723au: issue_action_BSSCoexistPacket(): Clean + use cfg80211_find_ie()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:58 -07:00
Jes Sorensen
f73255d4d8
staging: rtl8723au: collect_bss_info23a(): Convert to use cfg80211_fine_ie()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:58 -07:00
Jes Sorensen
f9df1ea120
staging: rtl8723au: process_80211d() use cfg80211_find_ie()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:58 -07:00
Jes Sorensen
7ffdc3f581
staging: rtl8723au: OnAction23_back23a() Use ieee80211_mgmt and bug fixes
...
This converts OnAction23a_back23a() to using struct ieee80211_mgmt to
parse the response packet. In addition this revealed a bug which has
been fixed:
case WLAN_ACTION_ADDBA_RESP: /* ADDBA response */
status = get_unaligned_le16(&frame_body[3]);
tid = ((frame_body[5] >> 2) & 0x7);
The above masks the tid to 3 bits, however per ieee80211.h, the tid is
in fact 4 bits wide, as defined by IEEE80211_ADDBA_PARAM_TID_MASK (0x3c)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:58 -07:00
Jes Sorensen
c8f260e3f6
staging: rtl8723au: OnDisassoc23(): Use ieee80211_mgmt
...
Use proper kernel ieee80211.h defined headers to parse the response.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:58 -07:00
Jes Sorensen
be47f78295
staging: rtl8723au: OnDeAuth23a() use ieee80211 header defines
...
Use the proper ieee80211.h structs to parse the response instead of
hard coded offsets.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:58 -07:00
Jes Sorensen
d7a159959e
staging: rtl8723au: OnAssocRsp23a() use ieee80211 header defines
...
Use the proper ieee80211.h structs to parse the response instead of
hard coded offsets.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:57 -07:00
Jes Sorensen
781f65cbf5
staging: rtl8723au: OnAuth23aClient23a() Use cfg80211_find_ie()
...
Use cfg80211_find_ie() and tidy up the code
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:57 -07:00
Jes Sorensen
b1b2bbbdc0
staging: rtl8723au: OnAuth23() Use cfg80211_find_ie()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:57 -07:00
Jes Sorensen
9f0e58664b
staging: rtl8723au: OnProbeReq23a() Use cfg80211_find_ie()
...
Switch to using cfg80211_find_ie() and tidy of the code.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:57 -07:00
Jes Sorensen
2403ea62b5
staging: rtl8723au: rtw_update_ht_ie23a(): use cfg80211_find_ie()
...
Switch to using cfg80211_find_ie() and remove commented out code.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:57 -07:00
Jes Sorensen
7c2f97b248
staging: rtl8723au: rtw_restructure_ht_ie23a(): use cfg80211_find_ie()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:56 -07:00
Jes Sorensen
bad69af0b9
staging: rtl8723au: Remove another stack of unused P2P related #defines
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:56 -07:00
Jes Sorensen
98fb81291d
staging: rtl8723au: Remove P2P/WiFiDirect/WiFiDisplay code
...
Discussing with Johannes Berg and Larry Finger, we have concluded that
this code really should be handled through wpa_supplicant, and not in
the kernel.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:56 -07:00
Jes Sorensen
91624933fd
staging: rtl8723au: Remove obsolete local defines matching WLAN_EID_*
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:56 -07:00
Jes Sorensen
3021bc4207
staging: rtl8723au: Fixup last users to use the kernel's WLAN_EID_* definitions
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:56 -07:00
Jes Sorensen
df220942df
staging: rtl8723au: rtw_recv.c: Use the kernel's WLAN_EID_* definitions
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-04-15 11:03:55 -07:00