Commit Graph

10441 Commits

Author SHA1 Message Date
Jeff Johnson
13269963d7 qcacld-3.0: Rename pModuleContext & ppModuleContext
Per the Linux coding style "mixed-case names are frowned upon" so
rename identifiers pModuleContext & ppModuleContext.

Change-Id: Ib0c37fa2ec295da24cfcdfbf903c6ba121dec04b
CRs-Fixed: 2251989
2018-06-06 20:27:45 -07:00
Jeff Johnson
835b760a1e qcacld-3.0: Rename pGpModContext & pModContext
Per the Linux coding style "mixed-case names are frowned upon" so
rename identifiers pGpModContext & pModContext.

Change-Id: I077cd7b7b3415c14549f02bb166ec31e79712b7b
CRs-Fixed: 2251988
2018-06-06 20:27:42 -07:00
Jeff Johnson
b3be6a6a36 qcacld-3.0: Rename moduleID & moduleId
Per the Linux coding style "mixed-case names are frowned upon" so
rename identifiers moduleID & moduleId.

Change-Id: I1bda5cb9d0d57a5af072ed0eb61c7d8125dfd3cd
CRs-Fixed: 2251987
2018-06-06 20:27:39 -07:00
Jeff Johnson
2ccd815bf5 qcacld-3.0: Rename cds_context field wmaCompleteEvent
Per the Linux coding style "mixed-case names are frowned upon" so
rename field wmaCompleteEvent in struct cds_context.

Change-Id: I0b56daf9e387bbc96ddd2b0539ddefb16c82cca2
CRs-Fixed: 2250673
2018-06-06 20:27:36 -07:00
Jeff Johnson
a40e21c1d3 qcacld-3.0: Rename cds_context field pHIFContext
Per the Linux coding style "mixed-case names are frowned upon" so
rename field pHIFContext in struct cds_context.

Change-Id: I023d61b0a26a6f4f35a46e5c04ab63b83182b846
CRs-Fixed: 2250672
2018-06-06 20:27:33 -07:00
Jeff Johnson
830f322c66 qcacld-3.0: Rename cds_context field pWMAContext
Per the Linux coding style "mixed-case names are frowned upon" so
rename field pWMAContext in struct cds_context.

Change-Id: Ia8fa98366d57ab2bf81549570ef7b1766e579a00
CRs-Fixed: 2250671
2018-06-06 20:27:30 -07:00
Jeff Johnson
528c2cfc31 qcacld-3.0: Rename cds_context field pMACContext
Per the Linux coding style "mixed-case names are frowned upon" so
rename field pMACContext in struct cds_context.

Change-Id: I50007d80d12276b682237d728435203e455a18c9
CRs-Fixed: 2250670
2018-06-06 20:27:27 -07:00
nshrivas
898ddcbc2b Release 5.2.0.81L
Release 5.2.0.81L

Change-Id: Ib4fd84a1d0919c378030fe3c54e5e37cfd6cedc9
CRs-Fixed: 774533
2018-06-06 18:56:22 -07:00
Dundi Raviteja
e1f0d3b5e3 qcacld-3.0: Add support to dynamicaly configure concurrent dwell time
Add new driver command to dynamically configure concurrent
active and passive dwell time parameters.

Change-Id: Ib758786349f8889600cab34609f5c7763fc36251
CRs-Fixed: 2230861
2018-06-06 18:56:21 -07:00
Amar Singhal
82b6a74853 qcacld-3.0: Remove incorrect check for station count
Remove incorrect check for WLAN_MAX_STA_COUNT. The callee
ol_txrx_get_vdev_by_local_id would do the correct check for
OL_TXRX_NUM_LOCAL_PEER_IDS.

Change-Id: I74f9996316cead165f40454c75145515e9c86a04
CRs-Fixed: 2247595
2018-06-06 18:56:18 -07:00
nshrivas
d78f25800b Release 5.2.0.81K
Release 5.2.0.81K

Change-Id: I1baf2b72f4b2585d88863a0f5a22892bccd7af54
CRs-Fixed: 774533
2018-06-06 07:39:28 -07:00
Kiran Kumar Lokere
4c75929fa7 qcacld-3.0: Fix duplicate assignment with wrong value
Remove the duplicate assignment with wrong value that
is never used

Change-Id: I6d599f5b4db457340fdf40d9c7637effb0948c57
CRs-Fixed: 2232901
2018-06-06 07:39:27 -07:00
nshrivas
9e96f69088 Release 5.2.0.81J
Release 5.2.0.81J

Change-Id: I92da9a5feff843481d6a55ed29ec05d4b8c3340d
CRs-Fixed: 774533
2018-06-06 05:49:20 -07:00
Manjunathappa Prakash
a0cbc92c6b qcacld-3.0: Add HDD flow pool map/unmap for policy manger
Add HDD flow pool map and unmap functions. These are registered
with the policy manager (via CDS) so that lithium_dp vdev flow pools are
created/deleted when vdev become active/not-active under the control of
the policy manager

Change-Id: I1ff6b3bafa78df68fbf9a221ac0d001bd5a06d8d
CRs-Fixed: 2240815
2018-06-06 05:49:20 -07:00
gaurank kathpalia
99d06c14e9 qcacld-3.0: Fill PMK info in pmk_cache in NON-FILS case
Currently the firmware supports FILS by default, and the
kernel and driver have dependencies on the kernel version
for FILS support. The PMK info i.e the PMK length and the
PMK itself is sent to the firmware as part of roam
scan offload params, and are filled from the PMK
received from the CFG layer via csr_roam_set_psk_pmk.
The PMK and its parameters are received via a vendor
command, and called via ops wlan_hdd_set_default_mgmt_key.
With the presence of FILS feature, the pmk is filled
via hdd_fill_pmksa_info(), which fills the PMK,PMK
length to the pmk_cache. It is called via ops
wlan_hdd_cfg80211_set_pmksa. But in the NON-FILS case,
the PMK, PMK length received from the CFG layer is NULL
and zero respectively, and hence the firmware which expects
a valid PMK and PMK length gets a PMK as NULL , and the
PMK length as zero, which will lead to deletion of the
pmk received earlier via vendor command, also a fresh 8-way
handshake from the HOST, rather than a 4-way handshake
from firmware if the PMK-ID for that particular AP(BSSID)
matches the PMK-ID in the AP.

Fix is to fill the params of PMK, PMK length in the NON-FILS
case too by copying the params received previously via the vendor
command, where the params are stored in the session itself.
Hence it will fulfill the requirement of the PMK, PMK len
from the firmware, and lead to a faster handshake process
while re-associating.

Change-Id: I4c91cac6bad400c8fa58b2a6ba2b282a3b7f1620
CRs-Fixed: 2243070
2018-06-06 05:49:17 -07:00
Himanshu Agarwal
331639871a qcacld-3.0: Start SAP on 80Mhz in STA+SAP when acs_policy enabled
When acs_policy is enabled and STA is already up on some 5Ghz channel,
SAP is coming up on the same 5Ghz channel as expected but in 20Mhz even
when bandwidth given by hostapd is 80Mhz.

Start SAP on same channel as STA but in 80Mhz instead of 20Mhz.

Change-Id: Ie5dc06844f867d32796706cdcc190d1cb1b1d2fe
CRs-Fixed: 2196229
2018-06-06 05:49:14 -07:00
Naveen Rawat
89e85d4f6a qcacld-3.0: Fix incomplete IE handling in dot11 unpack functions
If in dot11f_unpack functions, check for integer underflow fails,
the function returns failure but does not set the present field
of the IE. This present field of the structure is used to check
if IE is present. So even if the unpack failed the IE structure
is considered valid.

Change-Id: I8f572db43a869e48a151ea37dc5b9a2c1fe34eea
CRs-Fixed: 2246426
2018-06-06 05:49:11 -07:00
Alok Kumar
b8919e14c5 qcacld-3.0: Cleanup the unreachable code in htt_t2h_lp_msg_handler
Currently, the message type HTT_T2H_MSG_TYPE_RX_ADDBA and
HTT_T2H_MSG_TYPE_RX_DELBA is not supported as firmware is
no more sending this message to host.

Clean up the unreachable code for HTT_T2H_MSG_TYPE_RX_ADDBA
and HTT_T2H_MSG_TYPE_RX_DELBA message type.

Change-Id: I7a32fb53fec00e0507ef32d29494968188c98bfd
CRs-Fixed: 2226328
2018-06-06 05:49:08 -07:00
nshrivas
841f849c7b Release 5.2.0.81I
Release 5.2.0.81I

Change-Id: I7d409d6d6f23b433b25541ca85edacf6d50155a6
CRs-Fixed: 774533
2018-06-05 06:01:37 -07:00
Wen Gong
bd949fcea7 qcacld-3.0: Change compile config for extscan
Change compile config for extscan

Change-Id: I74f37ffb504f98d8f88f530520a35cabfddc3404
CRs-Fixed: 2246259
2018-06-05 06:01:36 -07:00
nshrivas
01256d7593 Release 5.2.0.81H
Release 5.2.0.81H

Change-Id: I54685f22c58d250888582cfc5aa2168b0e34cd2f
CRs-Fixed: 774533
2018-06-04 19:11:19 -07:00
Tushnim Bhattacharyya
929afa48db qcacld-3.0: Reduce log level to debug for scan & connect
Reduce the log level for some of the scan & connect related logs from
info to debug.

Change-Id: I19c41af47137cf1951834b31c47c73d6d5f4937e
CRs-Fixed: 2252968
2018-06-04 19:11:18 -07:00
nshrivas
0883906f01 Release 5.2.0.81G
Release 5.2.0.81G

Change-Id: I96ab06cad27d83143e26b972df665bd2bea3fb7d
CRs-Fixed: 774533
2018-06-04 15:03:49 -07:00
Ryan Hsu
b5783cfcb2 qcacld-3.0: clean up to avoid NULL pointer dereference IPA
Fix a few things in one shot.

- clean up some code to avoid potential NULL pointer dereference.
- add a helper function - wlan_ipa_free_tx_desc_list() to
  avoid duplication.
- rearrage wlan_ipa_teardown_sys_pipe() to allow others' reference

Change-Id: I9d6391a7f20ae427bf59f07958bd13f349e61d83
CRs-Fixed: 2233867
2018-06-04 15:03:48 -07:00
nshrivas
0342407471 Release 5.2.0.81F
Release 5.2.0.81F

Change-Id: Ibf26326c08a751e2849865602091e3441544566c
CRs-Fixed: 774533
2018-06-04 13:58:52 -07:00
Jeff Johnson
323a6f06aa qcacld-3.0: Rename cds_context field pHDDContext
Per the Linux coding style "mixed-case names are frowned upon" so
rename field pHDDContext in struct cds_context.

Change-Id: I483c5fa09127753770ec644527989902d842af0e
CRs-Fixed: 2250669
2018-06-04 13:58:51 -07:00
Jeff Johnson
7d63adb741 qcacld-3.0: Remove pVContext from struct _cds_sched_context
The pVContext field of struct _cds_sched_context is written but never
read, hence it is unused, so remove it.

Change-Id: I38a6491fb8581df00af59f7f2bc3f5f88c65b7e5
CRs-Fixed: 2250668
2018-06-04 13:58:48 -07:00
Jeff Johnson
2b6982c4a5 qcacld-3.0: Replace references to cds context typedefs
To align with the Linux Kernel coding style replace typedefs
cds_context_type and p_cds_contextType with a reference to the
underlying struct.

Change-Id: Ifc85a9bbecd29614835ed9e61ab143d0387e82b0
CRs-Fixed: 2250667
2018-06-04 13:58:45 -07:00
nshrivas
8e1d8c2c5e Release 5.2.0.81E
Release 5.2.0.81E

Change-Id: Ifbde45893dfa6a2993054e251da0a8dd73566bf3
CRs-Fixed: 774533
2018-06-04 07:04:59 -07:00
tinlin
3855eaadc7 qcacld-3.0: Report BSS of only requested RC in Rrm
Propagation from cld2.0 to cld3.0.

When receiving beacon request for radio measurement, sta
reports BSS in all valid channels regardless of specified
regulatory class in request. To fix this, let sta report only
BSS of requested RC.

Change-Id: I98c80ab3d53dd9d63225349e3c7657f48c758957
CRs-Fixed: 2237989
2018-06-04 07:04:58 -07:00
nshrivas
b482995186 Release 5.2.0.81D
Release 5.2.0.81D

Change-Id: I2c43991fd87916bfcb2e6c155e9f2317562cd873
CRs-Fixed: 774533
2018-06-04 00:55:30 -07:00
Wu Gao
df929f163a qcacld-3.0: Stop ap after register frame
Thread sleep since it uses mutex in SME register frame, one low rate
case which change interface fail since SSR in progress and then P2P
interface up fails. Solution is stopping ap after register frame.

Change-Id: I3831afb2cb61c9d40aa6945def3e0a169a4115a0
CRs-Fixed: 2243849
2018-06-04 00:55:29 -07:00
nshrivas
d182f169fe Release 5.2.0.81C
Release 5.2.0.81C

Change-Id: Iee33b6e8e08d2a5578d06972f34dc2ac94b34229
CRs-Fixed: 774533
2018-06-03 23:39:32 -07:00
Nirav Shah
d2aa963490 qcacld-3.0: Introduce per-OEM profile defconfig files
Introduce per-OEM profile defconfig files.

Change-Id: Ifb94021320f9203e1a80e4ca3fd61248bbd7a432
CRs-Fixed: 2251556
2018-06-03 23:39:31 -07:00
Sandeep Puligilla
a894ffc75c qcacld-3.0: Remove associated peers during SAP stop
SAP failed to remove all the associated peers during
shutdown which triggered assert at WMA.

Cleanup all the associated peers as part of the
stop bss at LIM to avoid the assert.

Change-Id: I3610590fd443f807d20f61bb050124506794cc2b
CRs-Fixed: 2251399
2018-06-03 23:39:26 -07:00
nshrivas
940b053e9a Release 5.2.0.81B
Release 5.2.0.81B

Change-Id: If0d8c241edcbbb20bd4a45b4af8cf50a8c7a1112
CRs-Fixed: 774533
2018-06-03 22:15:27 -07:00
Hanumanth Reddy Pothula
89b0dce2fb qcacld-3.0: Process DO_ACS vendor command only in SAP/P2P_GO mode
While processing DO_ACS vendor command session context, which is
of type union holds either station's or SAP's session, is updated
without checking adapter’s mode. This may lead to corrupt station's
session context if DO_ACS is invoked with station adapter.

Validate adapter mode and process DO_ACS vendor commands only if the
mode is SAP/P2P_GO.

Change-Id: Id99ba126fcfa1f06f68b89d4627c029948a201c5
CRs-Fixed: 2237661
2018-06-03 22:15:26 -07:00
nshrivas
8ff35eb427 Release 5.2.0.81A
Release 5.2.0.81A

Change-Id: I80dba2d78f2210c28bfad0f7273d72019b0d4d99
CRs-Fixed: 774533
2018-06-03 21:04:31 -07:00
Lihua Liu
15f6e45a5c qcacld-3.0: Fix potential NULL reference in wlan_ipa_uc_loaded_handler
In function wlan_ipa_uc_loaded_handler,the qdf_dev is as return of
wlan_psoc_get_qdf_dev(),which maybe NULL,then NULL reference could
occur later.

Change-Id: I3c6d5af35934deef643cb600b1966c22769c71ed
CRs-Fixed: 2250977
2018-06-03 21:04:31 -07:00
nshrivas
5ac9c22fe9 Release 5.2.0.81
Release 5.2.0.81

Change-Id: I214bff749a3ba682e509a9dd3cdbb3fea671c7a1
CRs-Fixed: 774533
2018-06-02 10:26:12 -07:00
Dundi Raviteja
bb06d022d6 qcacld-3.0: Change SIFS burst default value to 1
Change the value of HDD_ENABLE_SIFS_BURST_DEFAULT from 0 to 1.

Change-Id: I38fc4ebfcf507a53ed5ef9885c825d1eb9e90adb
CRs-Fixed: 2251821
2018-06-02 10:26:11 -07:00
nshrivas
24124739f6 Release 5.2.0.80Z
Release 5.2.0.80Z

Change-Id: I9783391fda7d2e40f0f9374904d2e7c159ef13ea
CRs-Fixed: 774533
2018-06-01 21:02:46 -07:00
Kiran Kumar Lokere
678ad346b1 qcacld-3.0: Fix issue with get channel list command
Set the band end channel to SRD channel range so that if the SRD
channels are enabled then get channel list command returns the
SRD channels in the output.

Change-Id: I26ec92cf842e62e2b113f38dc4ac4d1c5d7cbe22
CRs-Fixed: 2161849
2018-06-01 21:02:46 -07:00
Krunal Soni
ee5d1ad681 qcacld-3.0: Add debug log to capture vdev attach and detach events
There are certain stability issues reported and from the logs, it
has been concluded that vdev detach is missing which causes memory
leaks.

Add debug logs around vdev attach and detach paths to recognize any
memory leaks.

CRs-Fixed: 2244033
Change-Id: I9ee751fff8f51c7ad2ca2d7ec1e894cbbf60d201
2018-06-01 21:02:43 -07:00
nshrivas
f8b3f81508 Release 5.2.0.80Y
Release 5.2.0.80Y

Change-Id: I3e47fd2e3448959ebe58dde508197f7968672851
CRs-Fixed: 774533
2018-06-01 19:44:40 -07:00
Himanshu Agarwal
4ecf6ca43a qcacld-3.0: Break gAP11ACOverride for SAP and P2P GO
Presently, gAP11ACOverride is used to do 11ac override for both SAP and
P2P GO. So, enabling 11ac override in SAP and disbaling it in P2P GO or
vice versa is not possible as per current design. This causes issue in
the latest framework where 11ac override is not needed for SAP but is
required for P2P GO.

Break gAP11ACOverride into 2 inis, one for SAP and one for P2P GO to
have better control over the functionality.

Change-Id: I3809b91a80077d6d9958fe8e0bb770f960b691d6
CRs-Fixed: 2240387
2018-06-01 19:44:40 -07:00
nshrivas
0d2f94b81a Release 5.2.0.80X
Release 5.2.0.80X

Change-Id: Ia8efe10b820216ae0223d136d24a3b4f6bd6f4ad
CRs-Fixed: 774533
2018-06-01 18:24:23 -07:00
Wu Gao
6b81fc5f9c qcacld-3.0: Clear SOFTAP_BSS_STARTED flag for P2P GO SSR case
In SSR case, stop BSS fail with P2P GO since session invalid, and
then blocking to start next P2P GO.

Change-Id: I6bb387480e6a08e082771598b649c5ac240aff2e
CRs-Fixed: 2244698
2018-06-01 18:24:22 -07:00
nshrivas
3c1064567d Release 5.2.0.80W
Release 5.2.0.80W

Change-Id: I84640311dda3f915c362c61a0a14ed3d8cff97da
CRs-Fixed: 774533
2018-06-01 12:58:44 -07:00
Dustin Brown
b1c8990ec8 qcacld-3.0: Set unloading before grabbing lock
In wlan_hdd_pld_remove(), a global mutext is grabbed before setting the
global "unloading" flag. In the case of __hdd_open(), this flag is
checked before also grabbing the same lock. Ultimately this can lead to
deadlocks when other shared locks are involved. As a short-to-medium
term work around, set the unloading flag before waiting for external
threads to exit. After external threads have exited, then grab the lock
to avoid deadlocking with external threads like those invoking
__hdd_open(). Effectively, this does a stop-and-flush on external
threads into the driver before unloading.

Change-Id: Iaaf52d730807abd9a99950970988ec58a1abb87d
CRs-Fixed: 2251271
2018-06-01 12:58:43 -07:00