Commit Graph

13168 Commits

Author SHA1 Message Date
Jeff Johnson
ab797d63a8 qcacld-3.0: Converge on struct tdls_del_sta_req
During TDLS componentization the legacy typedef tSirTdlsDelStaReq was
replicated, creating struct tdls_del_sta_req. Unfortunately this left
the driver with two different data structures which serve the same
purpose. Not only is this pointless, but due to the way in which these
structures are used there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
exclusively use the TDLS component struct.

Note that this struct must be promoted to be a public struct since it
is now accessed from outside the component.

Change-Id: I054ee24e07062a60c4e00b935cd1bc5b4a9aef95
CRs-Fixed: 2400769
2019-02-26 00:08:49 -08:00
Jeff Johnson
4cdd1ac8e0 qcacld-3.0: Converge on struct tdls_add_sta_req
During TDLS componentization the legacy typedef tSirTdlsAddStaReq was
replicated, creating struct tdls_add_sta_req. Unfortunately this left
the driver with two different data structures which serve the same
purpose. Not only is this pointless, but due to the way in which these
structures are used there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
exclusively use the TDLS component struct.

Note that this struct must be promoted to be a public struct since it
is now accessed from outside the component.

Change-Id: I37500ead43eed2295df24c70b96e0b6ff85738c6
CRs-Fixed: 2400768
2019-02-26 00:08:43 -08:00
nshrivas
f7467dbd73 Release 5.2.0.122
Release 5.2.0.122

Change-Id: I31d3c81f3b8b13459e339cf59a4aab627d5e7b3b
CRs-Fixed: 774533
2019-02-25 21:47:22 -08:00
Jeff Johnson
fc0969f7b1 qcacld-3.0: Use vdev_id in hidden_ssid_vdev_restart_params
Change Iea0bf0a3dcae9186cce4eb176b974515fd0d7624 ("qcacmn: Replace
session_id in hidden_ssid_vdev_restart_params") is renaming the legacy
identifier session_id to vdev_id, so concurrently change the usage in
the legacy project.

Change-Id: Ie8c426aff1a8a1e7f75199c8cf7c761f1a893a05
CRs-Fixed: 2403935
2019-02-25 21:47:21 -08:00
Dustin Brown
6ca9b026b1 qcacld-3.0: Remove reference to VOS_STATUS
Some documentation still mentions VOS_STATUS. Update these to
QDF_STATUS.

Change-Id: I31a48715c23f24c310eb51a6eddf3ec6d4193258
CRs-Fixed: 2403794
2019-02-25 21:47:16 -08:00
nshrivas
0ba1f4df9a Release 5.2.0.121Z
Release 5.2.0.121Z

Change-Id: I0b6cbd99c86a19f4dcaa2623ba7e14613a96001d
CRs-Fixed: 774533
2019-02-25 18:43:43 -08:00
Min Liu
ddd233069e qcacld-3.0: Save RSN auth type for RSN association
Save RSN auth type in related context for RSN assocoation.
Some OWE specific operation need to be done according to
this RSN auth type since we cannot tell if a STA / SAP is OWE,
WPA2 or OPEN by its auth type OPEN.

Change-Id: I17dd72c7adf1c663725ac58ce263f4408d9c967b
CRs-Fixed: 2396885
2019-02-25 18:43:42 -08:00
Min Liu
3621ede660 qcacld-3.0: Clean up local variable of csr_roam_info
In some functions, the structure csr_roam_info is declared as
local variable. Given its size is large, adding fields in this
structure will easily break the 2K limit check of stack size.

Allocate this structure in heap instead of declaring it as
local variable.

Change-Id: I78980b0816d464f4d9951cf0b7b0f5a15d8985b4
CRs-Fixed: 2396867
2019-02-25 18:43:37 -08:00
nshrivas
acb10483fc Release 5.2.0.121Y
Release 5.2.0.121Y

Change-Id: I57e3ee701db8ecf8c4538ac709a1b46a4577080c
CRs-Fixed: 774533
2019-02-25 17:17:02 -08:00
Jeff Johnson
7eb6e84efd qcacld-3.0: Introduce wlan_hdd_validate_vdev_id()
Introduce function wlan_hdd_validate_vdev_id() as a replacement for
wlan_hdd_validate_session_id() to align with the converged naming.

Change-Id: I12913e48c28f48ab7139d012b1584d8a8a9737ab
CRs-Fixed: 2404173
2019-02-25 17:17:01 -08:00
nshrivas
1011db9221 Release 5.2.0.121X
Release 5.2.0.121X

Change-Id: I4e766212af122b45b233795d6c55e9c2e00ef2b8
CRs-Fixed: 774533
2019-02-25 15:48:01 -08:00
Jeff Johnson
27b989624e qcacld-3.0: Remove transactionId from join_rsp
The transactionId in struct join_rsp is unused, so remove it.

Change-Id: I3a208281994af7454415f71e66cc8abbf8c8561c
CRs-Fixed: 2403166
2019-02-25 15:48:00 -08:00
Jeff Johnson
0781949054 qcacld-3.0: Remove transactionId from tSirAddtsRsp
The transactionId in struct tSirAddtsRsp is unused, so remove it.

Change-Id: I89bd793f761c42c661269b71da0cda273cc38769
CRs-Fixed: 2403173
2019-02-25 15:47:55 -08:00
Jeff Johnson
c80ed54c69 qcacld-3.0: Remove transactionId from set_context_rsp
The transactionId in struct set_context_rsp is unused, so remove it.

Change-Id: I4de2bda5b1ac9644f3b99f5d67a5582c14784128
CRs-Fixed: 2403172
2019-02-25 15:47:51 -08:00
Jeff Johnson
953f99aea4 qcacld-3.0: Remove transactionId from deauth_ind
The transactionId in struct deauth_ind is unused, so remove it.

Change-Id: Icb138510b6e3e2cdbc9929d6c317237c7558c4b2
CRs-Fixed: 2403171
2019-02-25 15:47:47 -08:00
Jeff Johnson
b9e2c22adb qcacld-3.0: Remove transactionId from deauth_rsp
The transactionId in struct deauth_rsp is unused, so remove it.

Change-Id: I22ce8a357966675eec13c2fb9be53b2a22db6369
CRs-Fixed: 2403169
2019-02-25 15:47:43 -08:00
Jeff Johnson
b82e6d765e qcacld-3.0: Remove transactionId from disassoc_ind
The transactionId in struct disassoc_ind is unused, so remove it.

Change-Id: I8ab5254f3ec00eff19e32b897f1c8e4c9e4143af
CRs-Fixed: 2403168
2019-02-25 15:47:39 -08:00
nshrivas
4619c30900 Release 5.2.0.121W
Release 5.2.0.121W

Change-Id: I712a1ad6fafa72d5acd53358aefbc14d66857b96
CRs-Fixed: 774533
2019-02-25 14:14:09 -08:00
Pragaspathi Thilagaraj
87a60af51a qcacld-3.0: Update fils connection ERP sequence number after roam
Currently the host driver updates the fils erp sequence number
to upper layer once the roam synch indication with the next erp
sequence number is received from the firmware. During the next
connection triggered from upper layer, the supplicant sends the
updated erp seq number value to host and host saves it in
session->pCurRoamProfile->fils_con_info->sequence_number.

During roaming, the supplicant doesn't update erp next seq
number so host retains the older value of sequence number given
by the supplicant during initial connection and sends this value
as part of RSO update config sent to firmware after roam synch
complete is done. So the FILS connection is terminated due to
this wrong sequence number sent by the host.

Add changes to update the new erp sequence number received in
roam synch indication to
session->pCurRoamProfile->fils_con_info->sequence_number. Send
this updated value without any modification if the RSO update
config reason is roam completion.

Change-Id: Ie833f31c57173a5a4dc45722c7ee0b42cf916cb0
CRs-Fixed: 2397877
2019-02-25 14:14:08 -08:00
nshrivas
aceaf6dc26 Release 5.2.0.121V
Release 5.2.0.121V

Change-Id: I33530a7e71f6c7ff7b1893752b761c3fd05d45c3
CRs-Fixed: 774533
2019-02-25 12:44:57 -08:00
Yeshwanth Sriram Guntuka
81b17d5f1c qcacld-3.0: Do not reduce NSS for AP with vendor_4_OUI IE
NSS is reduced to 1 even though AP beacons or probe
responses contain vendor_4_OUI. The return value of
function csr_check_vendor_ap_3_present, which checks
for the presence of vendor_4_OUI, is true instead of
false due to incorrect IE data sent to this function.

Fix is to send appropriate IEs to csr_check_vendor_ap_3_present

Change-Id: Iea9ad4aae017df6972fdbe26d49bbda460d58dba
CRs-Fixed: 2401932
2019-02-25 12:44:56 -08:00
nshrivas
919979d7e8 Release 5.2.0.121U
Release 5.2.0.121U

Change-Id: Ifcdabbec99e8d402b56d46b2f7391318c3c56ae6
CRs-Fixed: 774533
2019-02-24 21:34:52 -08:00
Jeff Johnson
38d0ce6787 qcacld-3.0: Converge on struct gateway_update_req_param
The driver currently defines two different data structures to hold
Gateway Update parameters:
- legacy struct gateway_param_update_req
- unified WMI struct gateway_update_req_param

To align with the converged software architecture remove the legacy
definition and exclusively use the unified WMI definition.

Change-Id: Icc56c4d83808e3661593d2e4735533442d48eb7e
CRs-Fixed: 2404089
2019-02-24 21:34:51 -08:00
Wu Gao
814ce703b4 qcacld-3.0: Format ini descriptions
Some ini descriptions are different to common, and some of them
include wrong information, so correct them and use unified form.

Change-Id: I36348fb26a03cab254fd309d792125b8a21ad02f
CRs-Fixed: 2402446
2019-02-24 21:34:47 -08:00
nshrivas
d69f5041c5 Release 5.2.0.121T
Release 5.2.0.121T

Change-Id: Ie4c29768876732824fd256509a19738f2d291d3d
CRs-Fixed: 774533
2019-02-24 20:04:29 -08:00
Jeff Johnson
e24a554e29 qcacld-3.0: Use vdev_id in gateway_update_req_param
Change I84b28aa734b570f0a7834fbac7d27e9c66b8b026 ("qcacmn: Replace
session_id in gateway_update_req_param") is renaming the legacy
identifier session_id to vdev_id, so concurrently change the usage in
the legacy project.

Change-Id: I2d24a54e80931a944580e968a841679d2da7b2a1
CRs-Fixed: 2404013
2019-02-24 20:04:28 -08:00
nshrivas
ff3d8b1178 Release 5.2.0.121S
Release 5.2.0.121S

Change-Id: I36574e9abe5981c5093717b044b000c403bce366
CRs-Fixed: 774533
2019-02-24 18:36:09 -08:00
Jeff Johnson
941b0647c4 qcacld-3.0: Remove transactionId from disassoc_rsp
The transactionId in struct disassoc_rsp is unused, so remove it.

Change-Id: If39a946ad61ec7ac5f469a731c91dc9aa7550123
CRs-Fixed: 2403167
2019-02-24 18:36:08 -08:00
nshrivas
9d8cb6da9f Release 5.2.0.121R
Release 5.2.0.121R

Change-Id: I7ab9eee161ac7663e292bc0625ccbe2e427b4a26
CRs-Fixed: 774533
2019-02-24 16:40:56 -08:00
Jeff Johnson
93cf08a710 qcacld-3.0: Converge on struct tdls_send_mgmt_request
During TDLS componentization the legacy typedef tSirTdlsSendMgmtReq
was replicated, creating struct tdls_send_mgmt_request. Unfortunately
this left the driver with two different data structures which serve
the same purpose. Not only is this pointless, but due to the way in
which these structures are used there is an implicit requirement that
they be exactly identical. This approach is very fragile. To align
with the converged software architecture and to improve code
maintainability exclusively use the TDLS component struct.

Note that this struct must be promoted to be a public struct since it
is now accessed from outside the component.

Change-Id: I7d304d3d211101c7227ea621f307f91ff68a5753
CRs-Fixed: 2400767
2019-02-24 16:40:55 -08:00
nshrivas
43a0654452 Release 5.2.0.121Q
Release 5.2.0.121Q

Change-Id: I651ce2dfb91626b0012dfc0b15690658975a821a
CRs-Fixed: 774533
2019-02-24 14:59:22 -08:00
Jeff Johnson
301e5c996e qcacld-3.0: Refine hdd_send_peer_status_ind_to_oem_app()
Refine hdd_send_peer_status_ind_to_oem_app() as follows:
- Replace legacy sessionId with converged vdev_id
- Replace mixed-case names
- Zero the entire struct instead of per-field

Change-Id: I543fccbd628c653bf2dca1fa422688592d43e4a9
CRs-Fixed: 2404168
2019-02-24 14:59:22 -08:00
nshrivas
dbb72058e2 Release 5.2.0.121P
Release 5.2.0.121P

Change-Id: Ic7e3822ba4a6ff912ab05216870a051be1bbfe2e
CRs-Fixed: 774533
2019-02-24 06:31:43 -08:00
Jeff Johnson
9e3d899d9e qcacld-3.0: Remove transactionId from start_bss_rsp
The transactionId in struct start_bss_rsp is unused, so remove it.

Change-Id: I8dfc8bc9678c03257ff221c476b6f94c620d0dfc
CRs-Fixed: 2403165
2019-02-24 06:31:43 -08:00
Jeff Johnson
517ee49b3a qcacld-3.0: Converge on struct tdls_peer_update_state
As part of the original TDLS componentization the legacy typedef
tTdlsPeerStateParams was replicated as qca-wifi-host-cmn struct
tdls_peer_state_params. Subsequently when the TDLS component was
relocated back to qcacld-3.0 this struct was replicated again as
struct tdls_peer_update_state in the qcacld-3.0 TDLS public structs.
Unfortunately this left the driver with three different data
structures which serve the same purpose. Not only is this pointless,
but due to the way in which these structures are used there is an
implicit requirement that they be exactly identical. Further
complicating matters is the fact that these three structures each have
embedded structs which are also replicated. This approach is very
fragile since any change to any of these structs must be replicated
across the entire set. To align with the converged software
architecture and to improve code maintainability exclusively use the
TDLS public structs.

Change-Id: Id6d44a1bc0fe530957db3d9f9ab948e2af775433
CRs-Fixed: 2400766
2019-02-24 06:31:38 -08:00
nshrivas
8a9efa977a Release 5.2.0.121O
Release 5.2.0.121O

Change-Id: I5362939d0527122790325f0e8f8f41c81c705af0
CRs-Fixed: 774533
2019-02-24 05:08:05 -08:00
Jeff Johnson
7ad175c4d0 qcacld-3.0: Remove transactionId from sme_ready_req
The transactionId in struct sme_ready_req is unused, so remove it.

Change-Id: I54771f9ab3c8f1f1c37caeaaf0b87339659b4279
CRs-Fixed: 2403164
2019-02-24 05:08:04 -08:00
Jeff Johnson
8c76d609bd qcacld-3.0: Use vdev_id in hdd_send_peer_status_ind_to_app()
Currently hdd_send_peer_status_ind_to_app() uses the legacy term
sessionId to reference a virtual device. To align with converged
naming rename this to vdev_id.

Change-Id: Iada1a4bd86bbe444bc899bbaa1e05daccc552904
CRs-Fixed: 2404161
2019-02-24 05:07:59 -08:00
Jeff Johnson
29737026f3 qcacld-3.0: Alias vdev_id to smeSessionId in pe_session
Currently struct pe_session uses the legacy term smeSessionId. To
align with converged naming it is desirable to change this to vdev_id,
but due to the large number of places where smeSessionId is used it
will be difficult to modify all occurences at once. In order to allow
changes to "trickle in" replace the smeSessionId field with a union
that contains both a smeSessionId and a vdev_id field. This will allow
vdev_id and smeSessionId to both be used to access the same data item.

Subsequent changes can then replace references to smeSessionId with
vdev_id, and then once all references have been converted, replace the
union with a single vdev_id field.

Change-Id: Idfcf3edc801b5c6937b40bb24ab1c291cb7f415e
CRs-Fixed: 2404159
2019-02-24 05:07:55 -08:00
nshrivas
a4ebbe8d51 Release 5.2.0.121N
Release 5.2.0.121N

Change-Id: I6bbbe75dcfc30f21c5878ef899f6db6cf5adeda3
CRs-Fixed: 774533
2019-02-24 03:41:04 -08:00
Jeff Johnson
1ac308ab68 qcacld-3.0: Alias vdev_id to sessionId in csr_roam_session
Currently struct csr_roam_session uses the legacy term sessionId. To
align with converged naming it is desirable to change this to vdev_id,
but due to the large number of places where sessionId is used it will
be difficult to modify all occurences at once. In order to allow
changes to "trickle in" replace the sessionId field with a union that
contains both a sessionId and a vdev_id field. This will allow vdev_id
and sessionId to both be used to access the same data item.

Subsequent changes can then replace references to sessionId with
vdev_id, and then once all references have been converted, replace the
union with a single vdev_id field.

Change-Id: I67877b9a407bb07ec9f6516a765ee511c9c933e9
CRs-Fixed: 2404157
2019-02-24 03:41:04 -08:00
nshrivas
3c8957ca43 Release 5.2.0.121M
Release 5.2.0.121M

Change-Id: I8f98c186b7bb9480611060a9890d7371808830c2
CRs-Fixed: 774533
2019-02-23 16:02:47 -08:00
Srinivas Girigowda
59053152f0 qcacld-3.0: Remove obsolete code from CDS
Remove obsolete code from CDS.

Change-Id: I4f4375ed52616eb238697f5edcf0bf099ceb32ba
CRs-Fixed: 2395980
2019-02-23 16:02:46 -08:00
Srinivas Girigowda
7b13ae84d9 qcacld-3.0: Replace IS_BROADCAST_MAC with qdf_is_macaddr_broadcast
Replace IS_BROADCAST_MAC with qdf_is_macaddr_broadcast.

Change-Id: I4279f3ce6b5fdfd4026a9ae4ec59779df2153de9
CRs-Fixed: 2395998
2019-02-23 16:02:41 -08:00
Srinivas Girigowda
9cd6c340b0 qcacld-3.0: Replace IEEE80211_IS_BROADCAST with QDF_IS_ADDR_BROADCAST
Replace IEEE80211_IS_BROADCAST with QDF_IS_ADDR_BROADCAST.

Change-Id: I199797ea402ee68dd0addf6698aa5ccd0ddc8f97
CRs-Fixed: 2395998
2019-02-23 16:02:36 -08:00
nshrivas
7770194d9a Release 5.2.0.121L
Release 5.2.0.121L

Change-Id: I984d15fa7558db5273738ddd0f50caaf8ef756af
CRs-Fixed: 774533
2019-02-23 14:06:42 -08:00
Rajeev Kumar Sirasanagandla
b61b4f97ca qcacld-3.0: Fix function type for pe_handle_mgmt_frame
To address kernel control flow integrity (CFI) issues related to type
mismatch, correct the input argument type for pe_handle_mgmt_frame().

Change-Id: I2617c55655ba0303b89580e58f1bc2ea2efcefb9
CRs-Fixed: 2402966
2019-02-23 14:06:41 -08:00
Dustin Brown
389e5078b2 qcacld-3.0: Integrate DSC (vdev ioctls)
As part of DSC integration, use vdev op start/stop for appropriate
IOCTL handlers.

Change-Id: Ic2c96d9447f1a74733c3ad1dcc773f733fac10e6
CRs-Fixed: 2402144
2019-02-23 14:06:29 -08:00
Dustin Brown
207286b118 qcacld-3.0: Provide reason to QDF_DEBUG_PANIC()
A common pattern in WLAN to panic the driver is to log the reason and
then unconditionally panic. QDF_DEBUG_PANIC() takes a reason string to
help make the reason for the panic more obvious, but it is not always
used. Ensure all callers of QDF_DEBUG_PANIC() provide a reason string.

Change-Id: I3d23a8980adaeaa1a9798a4a6b0fba1f36eb52ad
CRs-Fixed: 2403829
2019-02-23 14:06:21 -08:00
nshrivas
b3c9d4c9be Release 5.2.0.121K
Release 5.2.0.121K

Change-Id: Iaa6aa344df03fc433ebdbf20b7587e0fe9d4787e
CRs-Fixed: 774533
2019-02-23 12:32:45 -08:00