Cleanup Scan active and passive concurrent time CFG/INI
references from legacy code.
Concurrent active and passive min time component is never used,
so remove it.
Change-Id: Idca5285d58bea659a1a481c1f33827608377ab98
CRs-Fixed: 2363138
Implementation of Host driver support to collect per Vdev Beacon
reception Stats from firmware and display the stats in sysfs.
"adb shell cat /sys/class/net/wlan0/beacon_stats"
vdev id: 0
Total Beacon Count: 255
Total Beacon Miss Count: 21
Beacon Miss Bit map [0x800] [0x10000000] [0x22000400] [0x100]
[0x84000000] [0x4030002] [0x5034000] [0x28084]
Change-Id: Iadd31042320f7815a6a6f4733f5393dba93b5b3e
CRs-Fixed: 2360913
Adds support to enable/disable scan for psoc/vdev with reason,
so that multiple clients can enable/disable the scan at same time.
Scan will remain disabled till all clients enable it back.
Change-Id: I693e223870142f831f8eefa59a9053960886bad6
CRs-Fixed: 2362098
The following fields in struct csr_roam_profile are unused, so remove
them:
- nWSCReqIELength
- pWSCReqIE
- fils_connection
Change-Id: I8fcae065b10d5480f2adab77427ef3048448d9a1
CRs-Fixed: 2364100
Add the following WLM and RRM ini configs to MLME
cfg:
CFG_LATENCY_ENABLE
CFG_LATENCY_LEVEL
CFG_LATENCY_FLAGS_NORMAL
CFG_LATENCY_FLAGS_MOD
CFG_LATENCY_FLAGS_LOW
CFG_LATENCY_FLAGS_ULTLOW
CFG_RRM_ENABLE
CFG_RRM_MEAS_RAND_INTVL
CFG_RM_CAPABILITY
Change-Id: I714aca1e9bc6d3c330934753364d7f58d93a28d7
CRs-Fixed: 2353103
Many of the function signatures in csr_api_scan.c do not conform to
the coding style, so make them conforming.
Change-Id: I50a46c2227b639af652b4e21d3a84d62140fce2c
CRs-Fixed: 2361755
The file csr_api_scan.c defines multiple macros, most of which are
not actually used by the current version of the code, so remove the
obsolete ones.
Change-Id: Ic3c64dea55ab19bbf1f39b52eedca121aef5bd25
CRs-Fixed: 2361754
The eCsrDot11FragThresh typedef, along with its member enumerations,
are unused, so remove them.
Change-Id: Ie57bf437072767b8befab8d28bb86b416737d137
CRs-Fixed: 2361343
Function csr_rates_find_best_rate() is unused, so remove it, along
with the now unused support function csr_rates_mac_prop_to_dot11().
Change-Id: I0a9e7894734a5a4f47030f8d12d0e41d0b23e95e
CRs-Fixed: 2361290
When switch channel failed, need handle it gracefully,
pass failure to PE and disconnect current session.
Change-Id: If489e519a1784dabf630d5bde34ef8de56abf5e1
CRs-Fixed: 2360726
Field tdlsCmd in struct tSmeCmd is unused, so remove it. Since that
field is the only user of struct tTdlsCmd, remove it and its composite
structs as well.
Change-Id: I06f8293b7f0ec2827016825c93fccc7075fcc9b7
CRs-Fixed: 2361288
Field addStaSessionCmd in struct tSmeCmd is unused, so remove it.
Since that field is the only user of struct addstafor_sessioncmd
remove that as well.
Change-Id: I5624ab301c11045de34781dc4dff3ef7d2c784d8
CRs-Fixed: 2361287
Field remainChlCmd in struct tSmeCmd is unused, so remove it. Since
that field is the only user of struct tRemainChlCmd, remove that as
well.
Change-Id: I99c7ee1187f8f17a1e4003fb3c2509e857745e20
CRs-Fixed: 2361286
Add the following WLAN_REG ini configs and FE_BEAMFORM
cfg items to MLME cfg:
1. WNI_CFG_11D_ENABLED
2. WNI_CFG_11H_ENABLED
3. WNI_CFG_TX_BF_CAP
4. WNI_CFG_AS_CAP
5. WNI_CFG_DISABLE_LDPC_WITH_TXBF_AP
Introduce the basic infra APIs related to these configs
from mlme.
In csr_roam_open_session, lim_populate_vht_mcs_set,
lim_sta_send_add_bss, populate_dot11f_tdls_ht_vht_cap,
populate_dot11f_vht_caps and sme_update_nss, local structure
is updated instead of mlme global structure for vht caps and
thus the mlme vht caps contains only the default values.
Fix this by updating mlme vht caps in mlme_update_vht_cap.
Change-Id: I1a948d7a44ad2bcc7f711c46b278971d7e4026e7
CRs-Fixed: 2354562
To align with the Linux coding style replace tpAniSirGlobal with
struct mac_context * in:
sme_qos.c
sme_qos_api.h
sme_qos_internal.h
Change-Id: Idb247cfab508543bbdaa9cd1f57a374fc8b6799e
CRs-Fixed: 2360293
To align with the Linux coding style replace tpAniSirGlobal with
struct mac_context * in:
sme_api.h
sme_api.c
Change-Id: If0264aeecf484c1adf4342a895e3449aee8f3006
CRs-Fixed: 2360291
Per the Linux coding style both mixed-case names and so-called
Hungarian notation are frowned upon. There are multiple variations of
the identifier "pSessionEntry" currently in use, so replace them with
pe_session everywhere they occur in the driver.
Change-Id: I6cc37504bf9e8821c0e1c3d99e4f97a57aaba24c
CRs-Fixed: 2360166
Add power items related CFG items in new file,
and store the respective inis in MLME component
Change-Id: Iac183da52495aca07c6270edeb9f383ab49c1ff5
CRs-Fixed: 2341900
The inline function MAC_CONTEXT() is the preferred mechanism for
converting a MAC handle into a MAC context, so replace all instances
of the legacy macro PMAC_STRUCT().
Change-Id: Ieb29696c79b729648462be699892607484c2f301
CRs-Fixed: 2357873
For STA connect/disconnect, SAP start/stop relative cmds, just
use following serialization command types:
Converged cmd types:
WLAN_SER_CMD_VDEV_START_BSS
WLAN_SER_CMD_VDEV_STOP_BSS
WLAN_SER_CMD_VDEV_CONNECT
WLAN_SER_CMD_VDEV_DISCONNECT
WLAN_SER_CMD_VDEV_RESTART
Change-Id: I533f650e1f69048d6861751ab74f75d8d5f18c83
CRs-Fixed: 2318545
Since refined second part of LFR INIs, apply these changes in
SME/MAC/WMA layer.
Change-Id: I7994a9038d5bd094ce23bcd525ef8f5282974bfc
CRs-Fixed: 2346790
Based on new cfg component, refactor CFG_TX_POWER_CTRL_NAME and clean
up related legacy codes.
Change-Id: I6dd317d5065c4111b71a9fe94d9b9af1f7d3d664
CRs-Fixed: 2355918
Connected roam profile's SSID is used to get the BSS entry from kernel
and indicate the same to kernel in cfg80211_connect_bss. If the
roam profile's SSID is NULL, the BSS entry indicated to kernel is
with NULL SSID and this result in disconnect from supplicant as
it assume that SSID of AP changed.
Fix is to fill the SSID in connected roam profile from roam profile
if SSID is NULL in beacon.
Change-Id: Ie42eceb50b6af551ac1f4ca7d37b73eff107dfbd
CRs-Fixed: 2349572
The driver fills the nss chains params in the vdev during
vdev create. The nss and chain params are filled by the user
in the ini file, but it may happen that the user filled the
nss param for that particular vdev as 2, and the number of
supported rf chains are 1, which is sent to the driver by FW,
so that would result in nss as 2, and chains as 1, which cannot
be supported.
Fix is to downgrade the nss to the number of chains supported by
the FW.
Change-Id: Ifa3ee74dbe5b8d19c6dc11ff64e42dbffadaa018
CRs-Fixed: 2354205
Per the Linux coding style "mixed-case names are frowned upon" and
"so-called Hungarian notation [...] is brain damaged." One identifier
used extensively throughout the driver that violates both of these
tenants is "pMac." In order to be compliant with the Linux coding
style there is a campaign to rename all instances of this identifier.
For this change rename all instances of "pMac" to "mac" in:
sme_api.c
Change-Id: If45f33b93230d1085ee1a3c4dbf35e1f4bfcab27
CRs-Fixed: 2356102
When host driver receives roam sync complete event, the
disable_hi_rssi to false if band is 2G and the high rssi
threshold delta needs to be sent to the firmware to take effect.
But presently the csr_roam_scan_offload exits with failure as
the driver issues start again.
Call csr_roam_scan_offload with ROAM_SCAN_OFFLOAD_UPDATE_CFG
command.
Change-Id: Ic3c9a729c290accbe9822948bc2363154db4c83f
CRs-Fixed: 2355359
Per the Linux coding style "mixed-case names are frowned upon" and
"so-called Hungarian notation [...] is brain damaged." One identifier
used extensively throughout the driver that violates both of these
tenants is "pMac." In order to be compliant with the Linux coding
style there is a campaign to rename all instances of this identifier.
For this change rename all instances of "pMac" to "mac" in:
csr_internal.h
Change-Id: I136277d79765b63f83c4079c49a6dcc830f21e69
CRs-Fixed: 2356093
Per the Linux coding style "mixed-case names are frowned upon" and
"so-called Hungarian notation [...] is brain damaged." One identifier
used extensively throughout the driver that violates both of these
tenants is "pMac." In order to be compliant with the Linux coding
style there is a campaign to rename all instances of this identifier.
For this change rename all instances of "pMac" to "mac" in:
sme_api.h
sme_ft_api.c
sme_ft_api.h
sme_inside.h
sme_internal.h
sme_qos_internal.h
sme_trace.c
sme_trace.h
Change-Id: I24ae034a06051d2e61d6f02283b3d2ecbe376bf9
CRs-Fixed: 2355452
Per the Linux coding style "mixed-case names are frowned upon" and
"so-called Hungarian notation [...] is brain damaged." One identifier
used extensively throughout the driver that violates both of these
tenants is "pMac." In order to be compliant with the Linux coding
style there is a campaign to rename all instances of this identifier.
For this change rename all instances of "pMac" to "mac" in:
rrm_api.h
rrm_api.c
sme_rrm_api.h
sme_rrm.c
Change-Id: I7eb6e7bf6f5d921b7a8f1f4c98d6a120e104a4ea
CRs-Fixed: 2355450
Per the Linux coding style "mixed-case names are frowned upon" and
"so-called Hungarian notation [...] is brain damaged." One identifier
used extensively throughout the driver that violates both of these
tenants is "pMac." In order to be compliant with the Linux coding
style there is a campaign to rename all instances of this identifier.
For this change rename all instances of "pMac" to "mac" in:
csr_api.h
csr_support.h
csr_host_scan_roam.c
csr_roam_preauth.c
Change-Id: I941c87e308f47162e9eddd111498cf072dbcdf81
CRs-Fixed: 2355449
Per the Linux coding style "mixed-case names are frowned upon" and
"so-called Hungarian notation [...] is brain damaged." One identifier
used extensively throughout the driver that violates both of these
tenants is "pMac." In order to be compliant with the Linux coding
style there is a campaign to rename all instances of this identifier.
For this change rename all instances of "pMac" to "mac" in:
csr_api_scan.c
Change-Id: Ib55b211e4fdab427aff8c04c8ac99e1af56c6edc
CRs-Fixed: 2355448
Per the Linux coding style "mixed-case names are frowned upon" and
"so-called Hungarian notation [...] is brain damaged." One identifier
used extensively throughout the driver that violates both of these
tenants is "pMac." In order to be compliant with the Linux coding
style there is a campaign to rename all instances of this identifier.
For this change rename all instances of "pMac" to "mac" in:
csr_inside_api.h
Change-Id: I18ba91ddf615e5c3ff8a025049c56587ee967289
CRs-Fixed: 2355447
Per the Linux coding style "mixed-case names are frowned upon" and
"so-called Hungarian notation [...] is brain damaged." One identifier
used extensively throughout the driver that violates both of these
tenants is "pMac." In order to be compliant with the Linux coding
style there is a campaign to rename all instances of this identifier.
For this change rename all instances of "pMac" to "mac" in:
csr_api_roam.c
Change-Id: Ibed3be53fb911f9ccaed375ee84aa7ebdd8f5e40
CRs-Fixed: 2356080
Per the Linux coding style "mixed-case names are frowned upon" and
"so-called Hungarian notation [...] is brain damaged." One identifier
used extensively throughout the driver that violates both of these
tenants is "pMac." In order to be compliant with the Linux coding
style there is a campaign to rename all instances of this identifier.
For this change rename all instances of "pMac" to "mac" in:
sme_qos.c
Change-Id: I0cf98781992a08be0dddaa121c600ac0950c448b
CRs-Fixed: 2356084
Per the Linux coding style "mixed-case names are frowned upon" and
"so-called Hungarian notation [...] is brain damaged." One identifier
used extensively throughout the driver that violates both of these
tenants is "pMac." In order to be compliant with the Linux coding
style there is a campaign to rename all instances of this identifier.
For this change rename all instances of "pMac" to "mac" in:
csr_util.c
Change-Id: I29e9232fb275730a79f5cd2758086ea740ca8593
CRs-Fixed: 2356091
Per the Linux coding style "mixed-case names are frowned upon" and
"so-called Hungarian notation [...] is brain damaged." One identifier
used extensively throughout the driver that violates both of these
tenants is "pMac." In order to be compliant with the Linux coding
style there is a campaign to rename all instances of this identifier.
For this change rename all instances of "pMac" to "mac" in:
csr_neighbor_roam.h
csr_neighbor_roam.c
Change-Id: I31fb8c8aa9d715a59c79cf041760e216d3032023
CRs-Fixed: 2356100
To align with the Linux coding style replace tpPESession with struct
pe_session * in sme.
Change-Id: I8f716b9b29fa694182c5750d40ec9bd2ddf99fd5
CRs-Fixed: 2353398
During Vdev start/restart LimProcessDefdMsgs is set to false. If
start/restart timeouts, it will initiate SSR but will not send
response to LIM and thus gLimProcessDefdMsgs will not set to true.
Thus no other commands will be processed in LIM. If any command is
queued in serialization during this time it will timeout.
This will eventually lead to timeout of the vdev destroy command as
it won't get processed until the command in active queue timeout and
it leads to peer and vdev refcount leaks.
To fix it purge all active and pending cmds during SSR, so that vdev
destroy cmd can be processed immediately and can release vdev/peer
ref count.
Change-Id: Id5c15ccb4c27dabfdd4a9e0d7ee9b765130e03bf
CRs-Fixed: 2354899
Cleanup multiple HT related CFG/INI Items which are already moved to the
MLME component.
Also move gShortSlotTimeEnabled INI from HDD to MLME component
Change-Id: Ie8c19f508401d4d72990f35ea5dcc18d45f0f16b
CRs-Fixed: 2354687
Per the Linux coding style "mixed-case names are frowned upon" and
"so-called Hungarian notation [...] is brain damaged." One identifier
used extensively throughout the driver that violates both of these
tenants is "pMac." In order to be compliant with the Linux coding
style there is a campaign to rename all instances of this identifier.
One instance is the following field in typedef tCsrTimerInfo:
- tpAniSirGlobal pMac;
In order to meet the needs of the campaign all that is really needed
is to rename this field and modify all accesses to this field. However
note that the Linux coding style also objects to typedefs except in a
few cases, and the use case for tCsrTimerInfo does not apply.
Therefore to address the larger problem replace the tCsrTimerInfo
typedef with an appropriately named struct with appropriately named
fields.
Change-Id: I0bddcbe1057611d4c6e586358f64a29fb4049776
CRs-Fixed: 2354421
Refactor ini items gSapForce11NFor11AC and gGoForce11NFor11AC
into new mlme component.
Change-Id: I85e2f7f9ae14a23c322572290b095aae0f29b0ec
CRs-Fixed: 2354940
Once Driver receives APF sub-command QCA_WLAN_SET_PACKET_FILTER,
it posts the message to SME and returns the context. In case
where vdev restarts before sending the APF command to WMI,
driver will drop it since Firmware cannot accept the command
while vdev is down. Upper layer will have no knowledge of this
failure since there is no acknowledgment mechanism for a
successful APF command sent to the Firmware. Once the vdev is up
again, upper layer will send next APF instructions and driver
will allow then to the Firmware. This is problematic since
Firmware cannot operate with the partial APF instructions since
the initial part was dropped.
Hold the vendor command context till the command is successfully
sent to the Firmware. Propagate the errors to the upper layer.
Change-Id: If3cd6fbc85f83c0d78e735e96c00011cd2fd9347
CRs-Fixed: 2350640