Commit Graph

14192 Commits

Author SHA1 Message Date
gaurank kathpalia
a92bb13dfc qcacld-3.0: Filter SAP based upon ACS channel list
Scenario:
1. Start SAP on any potential LTE-COEX channel.
2. SAP would restart when it gets the event of unsafe channel.

Observation:
SAP restarts on a channel not in ACS channel list.

Expectation:
SAP should restart in channels given by the user
space only which are configured by hostapd.

Issue with driver:
Currently in wlansap_filter_ch_based_acs, the driver
eliminates the channels based upon the ACS start, and
end channel, and not the channel list, which can lead
to almost all the channels being picked, and none eliminated
if the start channel was 1, and end channel was 165, even
when only two channels, say 1 and 165 only were present
in ACS channel list.

Fix:
Fix is to eliminate all the candidate channels which were
not part of the ACS channel list, and pick only those channels
that were part of initial do_acs request.

Change-Id: Ib3b0b0a77c07b423b66e99feb085a370ed01f2de
CRs-Fixed: 2454270
2019-05-17 20:41:56 -07:00
Abhinav Kumar
7123a69f72 qcacld-3.0: Remove redundant error message
Remove redundant error message while processing beacon.

Change-Id: Icd29c8973beb363bd38d311f27293575fb169421
CRs-Fixed: 2453864
2019-05-17 20:41:52 -07:00
gaurank kathpalia
a3856b84d6 qcacld-3.0: Add BSSID to reject rssi list in assoc reject
Scenario:
1. Turn on STA and try connect with a PMF capable AP.
2. Configure te AP to reject assoc everytime, with status
   code as ASSOC TRY AGAIN.

Issue with DUT:
STA would try again after the time t, which the AP has
specified in the assoc rsp frame, and if the AP sends
the assoc rsp fail continuosly with reason code try again,
then the active command timeout may happen as the
active command to connect would be stuck.

Observation:
Active command timeout happens, because the AP sends
the assoc rsp with the reason code try again and time
after every attempt.

Expectation:
The AP should be added to RSSI reject list, keeping RSSI
as 0, and retry delay as the time specified by AP, which would
result in connection attempt to that AP after the timeout, also
the STA would then continue with the other candidates.

Fix:
Fill the retry delay as the timeout value AP has given, RSSI as
0, and add the BSSID to the reject list, and continue connect
with other BSSIDs

Change-Id: If6155906a586539b3edef3e25bcad4f1e77159c3
CRs-Fixed: 2453875
2019-05-17 20:41:47 -07:00
Srinivas Girigowda
8e7ecabe16 qcacld-3.0: Replace IE_EID_VENDOR with WLAN_ELEMID_VENDOR
Replace IE_EID_VENDOR with converged macro WLAN_ELEMID_VENDOR.

Change-Id: I7f3109f8e2413d4ad091bebbd377739ff5c1e74d
CRs-Fixed: 2454262
2019-05-17 20:41:42 -07:00
nshrivas
3a974c16aa Release 5.2.0.133R
Release 5.2.0.133R

Change-Id: Ieb64f52300601e60d69fc6f717e2a7c58cf77711
CRs-Fixed: 774533
2019-05-17 16:21:49 -07:00
Abhishek Ambure
7acc2c1609 qcacld-3.0: Cleanup VDEV_SM legacy code
Legacy code of VDEV SM is no more used, hence this cleanup is done.

Change-Id: I8dc649639c4c1afb4ae206a046fe530e172bced9
CRs-Fixed: 2454039
2019-05-17 16:21:48 -07:00
nshrivas
512d6f05ae Release 5.2.0.133Q
Release 5.2.0.133Q

Change-Id: Iabcfbb29bc5525a84a65fe1487a6235ec30aabdb
CRs-Fixed: 774533
2019-05-17 00:49:11 -07:00
Sourav Mohapatra
9793868536 qcacld-3.0: Change static declaration to dynamic allocation
In function hdd_hostapd_sap_event_cb() there are variables that are
defined in the stack. This can cause stack overflow in certain cases.

Change the declaration of the variables to dynamic memory allocation.

Change-Id: Ic8dca63c57110a92f19a438b2ea9c7ab9936af97
CRs-Fixed: 2446590
2019-05-17 00:49:10 -07:00
nshrivas
0b135d1c9f Release 5.2.0.133P
Release 5.2.0.133P

Change-Id: Ia3fa7d8ebe8e6f20bdb6cf7e18308b5aa0bd9c3d
CRs-Fixed: 774533
2019-05-16 18:06:46 -07:00
Abhinav Kumar
c4a6c30750 qcacld-3.0: Fix race between vdev_stop and update_11k_offload
Currently, host sends 11k offload command to FW as part of RSO Start
and 11k offload disables to FW during RSO Stop. In case of STA+STA
concurrency, Host sends vdev_stop before 11k_deconfig for
currently enabled STA results to assert in FW.

In order to configure 11k for second STA without assertion, Driver
should de-config 11k for currently enabled STA before vdev stop/delete.

Fix is to configure 11k while start roaming and de-configure 11k
while stop roaming irrespective of the reason for roaming STOP.

Change-Id: I0915d8a0141194c331eb59ba0f2dfa9c8995628a
CRs-Fixed: 2449431
2019-05-16 18:06:40 -07:00
nshrivas
ac263d00d4 Release 5.2.0.133O
Release 5.2.0.133O

Change-Id: Ie4549fef68e47d418e972c72fb5d237a5a26acda
CRs-Fixed: 774533
2019-05-16 14:46:06 -07:00
Pragaspathi Thilagaraj
0f81a6a4b3 qcacld-3.0: Fix compilation issue with CONFIG_QCACLD_WLAN_LFR2 disabled
With feature flag for LFR2 disabled, there is compilation
failure in the wlan host driver.

Fix the compilation issues.

Change-Id: Ic21ccd0b313c6690c72a6546eba30c1ecb306cb0
CRs-Fixed: 2453298
2019-05-16 14:46:06 -07:00
Will Huang
aaa2a05e74 qcacld-3.0: Fix possible memory leak when set station key
If calling lim_send_set_sta_key_req with sendRsp==false, it didn't free
the tpSetStaKeyParams memory allocated in this function. This scenario
is possible hit when station key update during roaming before new bss
adding.

Change-Id: I29209576622bc2495a7ce3064e82efca2e70d19a
CRs-Fixed: 2452108
2019-05-16 14:45:57 -07:00
Abhishek Singh
62e574550b qcacld-3.0: Move legacy serialization flush cmds to common api
Move legacy serialization flush cmds to common api

Change-Id: If54b7241217618f9fd977b9a604bd1059f8a32ce
CRs-Fixed: 2452517
2019-05-16 14:45:43 -07:00
hqu
f2c3099c2b qcacld-3.0: Fix wrong MBSSID information for VDEV UP command
VDEV UP command doesn't include right MBSSID information, it will
cause data stall issue and so on.

Fix is to provide right MBSSID information with VDEV UP command.

Change-Id: I0201722c14dee1b01b8dacc7e3095301fb02fd3a
CRs-Fixed: 2434405
2019-05-16 14:45:39 -07:00
nshrivas
aae9dae0a8 Release 5.2.0.133N
Release 5.2.0.133N

Change-Id: I47e3579c69c8dab366ba506db2dd8243636d4122
CRs-Fixed: 774533
2019-05-16 12:43:07 -07:00
Rajeev Kumar Sirasanagandla
01d49efc8a qcacld-3.0: Fix missing gActionOUIConnect1x1 entry
Action OUI entry in gActionOUIConnect1x1 which was added as a part of
Idc0f3238e3521bb20c592b44de77216125e69504 was missed in the ini
convergence I6984096719a5abd7fa4f0a4f6641a17d29348332.

To fix this, add action_oui entry "001018 06 02FF009C0000 BC 25 48"
in gActionOUIConnect1x1.

Change-Id: Id8dcf2a21409bedbaecd0ab72ecca8d44a622c86
CRs-Fixed: 2452506
2019-05-16 12:43:06 -07:00
nshrivas
7a4e99353a Release 5.2.0.133M
Release 5.2.0.133M

Change-Id: Icfdbd59dace8a2b191fb357d4f8c82d018f390ec
CRs-Fixed: 774533
2019-05-16 10:12:18 -07:00
jiad
dd2c64da50 qcacld-3.0: Move IPA RX DPTRACE before eth_type_trans
For RX DPTRACE, we assume skb->data points to start of ethernet
header. In IPA RX exception path, DPTRACE is put after
eth_type_trans and eth_type_trans removes ethernet header from
skb->data. Thus move IPA RX DPTRACE before eth_type_trans.

Change-Id: I4d1a60292db43964fe08f591f0ee4b14e55ca4d3
CRs-Fixed: 2451155
2019-05-16 10:12:17 -07:00
nshrivas
529791fc3c Release 5.2.0.133L
Release 5.2.0.133L

Change-Id: Ibc135874a97bb029e332a94e9f9ec6ab8a7d07c1
CRs-Fixed: 774533
2019-05-16 07:45:39 -07:00
Srinivas Girigowda
851a6c0cb1 qcacld-3.0: Remove obsolete macros
Remove obsolete (unused) macros.

Change-Id: I969d6a0e4fd65ced65839b62e40506b9ce3df529
CRs-Fixed: 2453510
2019-05-16 07:45:38 -07:00
nshrivas
c21a9c2660 Release 5.2.0.133K
Release 5.2.0.133K

Change-Id: Ice79af9eb71d8b8ec76afeac369631928d08ea90
CRs-Fixed: 774533
2019-05-16 05:57:23 -07:00
Bala Venkatesh
9b0925f60b qcacld-3:0: Do not issue tdls del sta for bss peer
Currently, TDLS connection can be attempted with
any peer if the stats are more than configured threshold.
If the connection is attempted with connected AP then
add sta will be failed and TDLS disable link is given
by upper layer to cleanup the add sta failure.
TDLS component sends del sta request to lim.
As peer type check was not present del sta request will
be sent to firmware for connected BSS. In the resp path
as there is a check for TDLS peer type, TDLS component
was not notified of the resp and serialization cmd
timeout will happen.

Fix is to check the peer type for tdls peer del sta.

Change-Id: Ibe59256d7f7ba75116e234481569863259f921be
CRs-Fixed: 2453027
2019-05-16 05:57:22 -07:00
sheenam monga
6e49e5c314 qcacld-3.0: Add roam_reason in roam auth event
Currently, there is no information for roam reason
in hdd.

Fix, Handle roam reason recived from csr, print roam
reason and add roam reason in roam auth event.

Change-Id: Ib9188cb443fa81307fe23d73cce09f7c23bc7a41
CRs-Fixed: 2425910
2019-05-16 05:57:17 -07:00
Yue Ma
0631a756fb qcacld-3.0: Add PLD API to check DRV connection
Add PLD API in order to check if DRV (Direct Resource Vote) subsystem
is connected or not.

Change-Id: I3b600b0760e27c7111320088034c555aee4ff773
CRs-fixed: 2452039
2019-05-16 05:57:13 -07:00
nshrivas
e30731dc75 Release 5.2.0.133J
Release 5.2.0.133J

Change-Id: Iaeadfa53a1964c18556008f42839e9599b6d2919
CRs-Fixed: 774533
2019-05-16 02:28:24 -07:00
Yue Ma
b4ebd87f7b qcacld-3.0: Add WLAN device version to SOC info API
Populate WLAN device version related info along with other SOC info
in pld_get_soc_info() API.

Change-Id: Ie0e862c6755d10fbc80b11fbf39d004fafcfd9af
CRs-fixed: 2437413
2019-05-16 02:28:23 -07:00
Yue Ma
80fb30c778 qcacld-3.0: Remove PSOC sync protection for runtime PM resume
Unlike runtime PM suspend, resume may need happen synchronously
during driver shutdown or idle shutdown, hence remove PSOC sync
protection for runtime PM resume.

Change-Id: I4112215d3415dbe6da225d8feb2af7207d88753a
CRs-fixed: 2451994
2019-05-16 02:28:14 -07:00
nshrivas
77d8f3daf8 Release 5.2.0.133I
Release 5.2.0.133I

Change-Id: I6008dc7e0b48353d0b13795d53f498e39fb589e0
CRs-Fixed: 774533
2019-05-15 21:34:10 -07:00
nakul kachhwaha
5913f35b27 qcacld-3.0: Check neighbor roam state before issuing disconnect
wlan_hdd_try_disconnect should wait for LFR 2.0 based roaming
sequence to complete before triggering disconnect to avoid
potential race conditions.

Change-Id: Ib5ee542350fb8c375bb3629f5437bc37cc79dbb7
CRs-Fixed: 2434842
2019-05-15 21:34:09 -07:00
nshrivas
b7a6d1a405 Release 5.2.0.133H
Release 5.2.0.133H

Change-Id: I9b32a9b366d48d10b32af6a5a7795c38a4498287
CRs-Fixed: 774533
2019-05-15 13:22:06 -07:00
Pragaspathi Thilagaraj
98e70590d4 qcacld-3.0: Cleanup lim_update_fils_config()
The function lim_update_fils_config(), is invoked when
csr_send_join_req() sends the join request message to lim. It
copies the fils related configurations to lim from csr. The
variable csr_fils_info is used for destination lim structure.
This is misleading.

Rename csr_fils_info to pe_fils_info in lim_update_fils_config.

Change-Id: Idac1f73bba5ceff646e09b588f3e08ed4968a0fd
CRs-Fixed: 2445238
2019-05-15 13:22:06 -07:00
Yu Ouyang
346191a403 qcacld-3.0: fix reassociation issue
While getting reassociation request frame, user space hostapd will
trigger diassociate with reason code 13. Association can't be
established.

The root cause is host driver forwards more 6 bytes to user space.
The 6 bytes is current AP address in association request frame.
Hostapd can't paras association request frame because the additional
6 bytes.

Skip current AP address before forwarding reassociation request
frame to user space.

Change-Id: I94a7c26289f24a1f0716fe64c4ee58eae1a913c6
CRs-Fixed: 2435392
2019-05-15 13:22:02 -07:00
nshrivas
560dfabd8d Release 5.2.0.133G
Release 5.2.0.133G

Change-Id: I4dbdcc0e8acd9329affc05849470db66ddcb720c
CRs-Fixed: 774533
2019-05-15 05:47:02 -07:00
Rakshith Suresh Patkar
d31f1e5ed9 qcacld-3.0: Move enum WDI_EVENT to common datapath
Move the enum WDI_EVENT from wdi_event.h to
cdp_txrx_stats_struct.h as it is used in
common datapath.

Change-Id: If3a2dcc481d59e6615e4a50ffbb721bf61fb75c2
CRs-Fixed: 2449966
2019-05-15 05:47:01 -07:00
nshrivas
0734993ceb Release 5.2.0.133F
Release 5.2.0.133F

Change-Id: Ia852078e4a8aea55c49b4cef825bae1aec745637
CRs-Fixed: 774533
2019-05-14 23:57:46 -07:00
nshrivas
4c085174de Release 5.2.0.133E
Release 5.2.0.133E

Change-Id: I706755243d01e316653d3766efc8267b5239ad74
CRs-Fixed: 774533
2019-05-14 18:39:44 -07:00
Mohit Khanna
a8c9f569ea qcacld-3.0: INI support for RX softirq time limit
Add changes to configure params for RX softirq time limit feature via
INI file.

Change-Id: I714a64e3d4ba7f094a81b4d11dab9bc63c7ee2de
CRs-Fixed: 2423622
2019-05-14 18:39:43 -07:00
nshrivas
cd6ac97ba2 Release 5.2.0.133D
Release 5.2.0.133D

Change-Id: I5a7824f8fa39de933c47730443a46938d24804bd
CRs-Fixed: 774533
2019-05-14 13:03:09 -07:00
Arun Kumar Khandavalli
43fdd25d72 qcacld-3.0: Move allocation of tdls private to tdls component
Presently osif tdls memory is freed as part of the osif_priv
when the vdev is logically destroyed. There is case seen
wherein the  tdls is holding vdev reference and in the other
thread the  interface down is received and the osif_priv is
freed resulting in the tdls osif priv also, if the other thread
tries to dereference the tdls os priv it will result
null pointer exception.

Move the tdls osif priv memory creation/deletion to the tdls component.

Change-Id: I3782f6304bee5a6eaab4d9122a569ba56fd29947
CRs-Fixed: 2436379
2019-05-14 13:03:08 -07:00
nshrivas
f151174be6 Release 5.2.0.133C
Release 5.2.0.133C

Change-Id: I1fa7f35e84840ac7ff88cdac5a30886f25497436
CRs-Fixed: 774533
2019-05-14 11:15:43 -07:00
Bala Venkatesh
5f34f7ffc4 qcacld-3.0: Allow SAP on channel 165 with BW 40MHZ
Currently, SAP channel switch is failed if the BW given
is 40Mhz on channel 165. But for some country's like IN
BW 40Mhz can be used. Hence allow the SAP on channel 165
with BW 40Mhz

Change-Id: I89a023d52d9a52e342b3e08e37ad20aec65db1a6
CRs-Fixed: 2447398
2019-05-14 11:15:42 -07:00
nshrivas
711f54ecdd Release 5.2.0.133B
Release 5.2.0.133B

Change-Id: I043570dd519d66c40f58473cc3e554571f469ce0
CRs-Fixed: 774533
2019-05-14 05:46:21 -07:00
Liangwei Dong
9a91b8a0fe qcacld-3.0: AP-AP chan override
If FW does not support WMI_SERVICE_DUAL_BEACON_ON_SINGLE_MAC_MCC_SUPPORT,
in AP+AP case start the second SAP on same band and
different channel will be failed.
For force mcc to scc switch enabled case, override the second AP's
chan to same chan of first AP instead of return failed in start AP.

Change-Id: I83ad3db3160cfc2dd66163bb1e1b2e19ae7c5fa3
CRs-Fixed: 2439440
2019-05-14 05:46:20 -07:00
nshrivas
b0423d0f0e Release 5.2.0.133A
Release 5.2.0.133A

Change-Id: Id1f30be8d218af9bc4a510f3f3cb2c812a7433c7
CRs-Fixed: 774533
2019-05-14 03:51:52 -07:00
nshrivas
51caaac904 Release 5.2.0.133
Release 5.2.0.133

Change-Id: I229c6d69cd956e487d5a6171e008db1c01b8b181
CRs-Fixed: 774533
2019-05-13 03:31:32 -07:00
Rajeev Kumar Sirasanagandla
105318b8b0 qcacld-3.0: Avoid OBSS scan fail during SSR
When SSR is in progress, OBSS vendor scan request is rejected with
reason code -EAGAIN, but hostapd doesn't consider this reason code
and resulting in the failure of hotspot start.

To fix this, return error code -EBUSY which makes hostapd to reissue
OBSS scan.

Change-Id: I71119f542011aebece5692347ceb99f4a65decef
CRs-Fixed: 2443341
2019-05-13 03:31:31 -07:00
Abhishek Singh
b5c73a475c qcacld-3.0: Cleanup sme_scan_flush_result to use cmn scan API
Cleanup sme_scan_flush_result and csr_scan_flush_result to
use ucfg_scan_flush_results API to flush scan results.

Change-Id: If4ee6c56662d8b214c3b15325a5aef83c449d7c0
CRs-Fixed: 2450775
2019-05-13 03:31:26 -07:00
Abhishek Singh
d1cd4aed4f qcacld-3.0: Use new scan API to get scan results in ACS
ACS used old csr API's to get scan results, move it to use
converged scan API.

Change-Id: Ic62ac940bb6a5cc2eb3ea0e9888807ed74974d3a
CRs-Fixed: 2450559
2019-05-13 03:31:21 -07:00
Rajeev Kumar
473f9afe2a qcacld-3.0: Serialize psoc idle shutdown and restart via PLD
Serialize psoc interface inactivity idle shutdown and restart via PLD
such that platfrom driver can serialize psoc idle shutdown and restart
to driver unload and SSR events to avoid any race conditions.

Change-Id: Ibac40158ad5b94468b09c53eaf7f3d9a3cb8badf
CRs-Fixed: 2430868
2019-05-13 03:31:17 -07:00