summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8723au/core/rtw_mlme.c
AgeCommit message (Collapse)Author
2014-06-24staging: rtl8723au: rtw_append_pmkid(): Adjust for IEs array not arrying ↵Jes Sorensen
fixed elements Another case using hard coded offsets counting on the presence of fixed beacon elements in the IEs array. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-24staging: rtl8723au: rtw_restruct_wmm_ie23a(): Use cfg80211_find_vendor_ie()Jes Sorensen
Rewrite rtw_restruct_wmm_ie23a() using cfg80211_find_vendor_ie() Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-24staging: rtl8723au: Get rid of obsolete _FIXED_IE_LENGTH_ + _BEACON_IE_OFFSETJes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-24staging: rtl8723au: Stop carrying half the beacon frame header in the stored ↵Jes Sorensen
IE array This gets rid of the odd carrying of half the beacon frame in the IE array stored for the network. Instead we rely on the relevant fields (timestamp, beacon_interval, and capability) stored in struct wlan_bssid_ex. Carrying only half the ieee80211_mgmt header led to a number of bugs and simply obfuscated the code. I have tried catching all instances relying on these three elements in the IEs array, but missed cases may still need to be tracked down. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-24staging: rtl8723au: Use _FIXED_IE_LEN_ instead of hard coded valueJes Sorensen
This should help catching all the users once we stop carrying the fixed beacon elements in the IE array. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-21staging: rtl8723au: rtw_joinbss_update_network23a(): update beacon info as wellJes Sorensen
We need to copy over the beacon info (interval, capability, tsf) as well as the IE data. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-21staging: rtl8723au: rtw_survey_event_cb23a(): Remember to clone beacon dataJes Sorensen
We need to clone all the beacon information, not just the IE data, in particular as the long term goal is to stop carrying this information in the IE data. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-21staging: rtl8723au: Remove (hopefully) last duplicate define of WLAN_EID_RSNJes Sorensen
So much for thinking the removal of the previous 217 duplicate copies would suffice .... Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-21staging: rtl8723au: Remove unused struct mlme_priv->wfd_* entriesJes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-21staging: rtl8723au: Remove obsolete mlme_priv->p2p_* entriesJes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-21staging: rtl8723au: Remove unused struct mlme_priv->wps_probe_resp_ieJes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-21staging: rtl8723au: Remove unused mlme_priv->wps_assoc_resp_ie and friendsJes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-21staging: rtl8723au: struct mlme_priv->wps_beacon_ie is never setJes Sorensen
Remove all code trying to use it Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19staging: rtl8723au: Eliminate last rtw_get_beacon_interval*() usageJes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19staging: rtl8723au: Remove last users of rtw_get_capability*() functionsJes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19staging: rtl8723au: is_same_network23a(): Use the capability info from ↵Jes Sorensen
wlan_bssid_ex We already have the capability info in struct wlan_bssid_ex, no point in searching for it once again. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19staging: rtl8723au: struct wlan_bssid_ex: Rename BeaconPeriod to beacon_intervalJes Sorensen
This is to be more consistent mapping the names in wlan_bssid_ex to those in struct ieee80211_mgmt. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Remove redundant casting in rtw_mlme.cSachin Kamat
Casting value returned by kzalloc is useless. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Move FillH2CCmd() prototype to rtl8723a_cmd.h where it ↵Jes Sorensen
really belongs As an added bonus, remove the now obsolete rtw_ioctl_set.h Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Don't run regular scans in the driver, the stack handles ↵Jes Sorensen
that Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Move rtw_do_join23a() to rtw_mlme.c and declare it staticJes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: rtw_select_and_join_from_scanned_queue23a() never returns 2Jes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: rtw_surveydone_event_callback23a(): We always set ↵Jes Sorensen
_FW_UNDER_LINKING Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: to_join will no be true if _FW_LINKED is setJes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Remove no-op rtw_get_encrypt_decrypt_from_registrypriv23a()Jes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Consolidate duplicate adhoc joining code into ↵Jes Sorensen
rtw_do_join_adhoc() Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: rtw_surveydone_event_callback23a(): Remove superfluous ↵Jes Sorensen
memset() Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Introduce rtw_do_join_network()Jes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Introduce rtw_select_candidate_from_queue()Jes Sorensen
This splits a portion of rtw_select_and_join_from_scanned_queue23a() into rtw_select_candidate_from_queue() Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Minor debug message fixupJes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Make rtw_is_same_ibss23a() return boolJes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: rtw_stadel_event_callback23a(): Remove superfluous memset()Jes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: free_scanqueue(): Use _rtw_free_network23a()Jes Sorensen
Use _rtw_free_network23() so elements are freed in one place. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Do not embed struct wlan_bssid_ex in struct survey_eventJes Sorensen
Instead allocate it separately and reference it from survey_event. This will allow for us to pass it on later without having to copy it. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: rtw_survey_event_cb23a(): Use the correct types for the ↵Jes Sorensen
received arguments Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Declare rtw_update_scanned_network() staticJes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Make struct htpriv.ampdu_enable a boolJes Sorensen
Be consistent in parsing it's value Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Be consistent in how htpriv.ht_option is checkedJes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Make struct ht_priv.ht_option a boolJes Sorensen
Match the return type of rtw_restructure_ht_ie23a() accordingly Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Remove WMM_ definesJes Sorensen
Only one is used, and only describes the size of an array defined in a local function. Use sizeof() in the local function to deobfuscate it. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: rtw_update_ht_cap23a(): Use correct mask when ↵Jes Sorensen
determining 40MHz channel location commit 4dc5f8bab2663b902b9cb0be29198dbbf38aa3fb Author: Jes Sorensen <Jes.Sorensen@redhat.com> Date: Tue May 27 13:43:12 2014 +0200 staging: rtl8723au: Eliminate struct HT_info_element Yet another duplicate version of struct ieee80211_ht_operation Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> introduced a bad error, applying the wrong value as the mask when determining the location of the 40MHz channel, effectively making it always determining it as not present. This caused hangs and delays when running in 40MHz channel mode. This should get it right. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Eliminate struct HT_info_elementJes Sorensen
Yet another duplicate version of struct ieee80211_ht_operation Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Use correct struct for WLAN_EID_HT_CAPABILITYJes Sorensen
WLAN_EID_HT_CAPABILITY carries a struct ieee80211_ht_operation - use the right struct instead of a self invented one. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Use struct ieee80211_ht_cap and associated #definesJes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: Use struct ieee80211_mcs_info to describe MCS informationJes Sorensen
The original RTL code defined the MCS information as a 16 byte array and blindly applied it's masking over the full array, ignoring the fact that only the first 10 bytes describe the rx_mask and the rest are different fields. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-18staging: rtl8723au: rtw_mlme.c: Remove some tab and parenthesis abuseJes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-17staging: rtl8723au: rtw_mlme.c: Convert rtw_get_wps_ie23a() to ↵Jes Sorensen
cfg80211_find_vendor_ie() Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-17staging: rtl8723au: rtw_get_wps_ie23a(): Remove unused dest pointer wps_ieJes Sorensen
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-28staging: rtl8723au: Remove redundant casting in rtw_mlme.cSachin Kamat
Casting value returned by k[cmz]alloc is useless. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-25staging: rtl8723au: Don't check check_fwstate() == falseJes Sorensen
In addition, remove a followon check for false just after having checked for true. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>