Commit Graph

15207 Commits

Author SHA1 Message Date
Jeff Johnson
36583f0647 qcacld-3.0: Converge on struct plm_req_params
The driver currently defines two different data structures to hold
PLM Request parameters:
- legacy struct plm_req
- unified WMI struct plm_req_params

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

Change-Id: I7675686aba9590a4507a8f9ebffcbf181ee00a21
CRs-Fixed: 2411817
2019-03-17 12:54:10 -07:00
nshrivas
a40d629fbd Release 5.2.0.126A
Release 5.2.0.126A

Change-Id: Ib15dde305eb794f896c937851e57c9140046fc0d
CRs-Fixed: 774533
2019-03-16 12:43:57 -07:00
Jeff Johnson
e2b360bca8 qcacld-3.0: Rename HDD identifier pFTAssocRsp
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pFTAssocRsp to be
compliant.

Change-Id: Id619aa35893786db87abf264d4fd372c03425cac
CRs-Fixed: 2417251
2019-03-16 12:43:56 -07:00
Jeff Johnson
8152d89ea1 qcacld-3.0: Rename HDD identifier pFTAssocReq
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pFTAssocReq to be
compliant.

Change-Id: I1c80ae905381a7faf0afa6a83e43c7118855edce
CRs-Fixed: 2417249
2019-03-16 12:43:51 -07:00
Jeff Johnson
c6c35e3cc9 qcacld-3.0: Rename HDD identifier pMgmt_frame
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pMgmt_frame to be
compliant.

Change-Id: I3b01eb6fa7e60d76b0722db650a9467fa30d23d0
CRs-Fixed: 2417248
2019-03-16 12:43:46 -07:00
Jeff Johnson
e16f08208f qcacld-3.0: Rename HDD identifier connectedCipherAlgo
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier connectedCipherAlgo to be compliant.

Change-Id: I2accfa86266cd87c4f09de06db8c5e1cc9fb26b3
CRs-Fixed: 2417247
2019-03-16 12:43:42 -07:00
Jeff Johnson
71246e149e qcacld-3.0: Rename HDD identifier aniHdr
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier aniHdr to be compliant.

Change-Id: I230878a0694662f9556eff3c91cabc3919bbe45d
CRs-Fixed: 2417246
2019-03-16 12:43:38 -07:00
Jeff Johnson
5fc4aaa27a qcacld-3.0: Rename HDD identifier pCsrRoamInfo
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pCsrRoamInfo to be
compliant.

Change-Id: I481aa5527f8687ffbeb6e2b6e0927f7449e0633f
CRs-Fixed: 2417245
2019-03-16 12:43:34 -07:00
Jeff Johnson
72afbf8d88 qcacld-3.0: Refine hdd_indicate_unprot_mgmt_frame()
The current implementaton of hdd_indicate_unprot_mgmt_frame() has a
few issues:
- It has identifiers with mixed-case and Hungarian notation
- It has in-function conditional compilation
- It has a series of adapter sanity checks rather than utilizing the
  centralized adapter sanity checking function

So refine the function to address these issues.

Change-Id: I4b623b936e869205d9f6b888e445432ec0bd0478
CRs-Fixed: 2417244
2019-03-16 12:43:30 -07:00
Jeff Johnson
24c26fd8ad qcacld-3.0: Rename HDD identifier fSuccess
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier fSuccess to be compliant.

Change-Id: I12ff5ace525f9d98d144c098bda0b3165c4fa241
CRs-Fixed: 2417243
2019-03-16 12:43:26 -07:00
Jeff Johnson
5a0dffd63c qcacld-3.0: Rename HDD identifier listType
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier listType to be compliant.

Change-Id: I4a35ed3cd360930bebffb9172f714e49d41cc3de
CRs-Fixed: 2417242
2019-03-16 12:43:22 -07:00
Jeff Johnson
618ed668f3 qcacld-3.0: Rename HDD identifier pPeerStaMac
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pPeerStaMac to be
compliant.

Change-Id: I26cd52c420136066eca57c6897774ce8135f1558
CRs-Fixed: 2417241
2019-03-16 12:43:18 -07:00
nshrivas
2571270dc0 Release 5.2.0.126
Release 5.2.0.126

Change-Id: I863e151be1485793f5873aeefb17c5fc26faea9a
CRs-Fixed: 774533
2019-03-15 16:51:17 -07:00
Harprit Chhabada
e20b556057 qcacld-3.0: Potential double free in lim_send_sme_wm_status_change_ntf()
lim_sys_process_mmh_msg_api() is a wrapper for sys_process_mmh_msg(),
and sys_process_mmh_msg() itself free the msg->bodyptr. So if
lim_sys_process_mmh_msg_api() returns an error, wm_status_change_ntf
would be freed by both sys_process_mmh_msg() and
lim_send_sme_wm_status_change_ntf()

Change-Id: Ib66d0263625fc2606b4fb4d16f007f3d155977ba
CRs-Fixed: 2411688
2019-03-15 16:51:16 -07:00
nshrivas
c902c44047 Release 5.2.0.125Z
Release 5.2.0.125Z

Change-Id: I91c41e871acd023444d0a91419370ece4b83228b
CRs-Fixed: 774533
2019-03-15 15:17:02 -07:00
Harprit Chhabada
5dff30ea99 qcacld-3.0: Call correct api to get band info in hdd_get_band_helper
In hdd_get_band_helper, use ucfg_reg_get_band() instead of
sme_get_freq_band() to get band information.
Also, remove sme_get_freq_band().

Change-Id: I8bb66527fb1ab92bc45f799bbca4310a3a8d1dcf
CRs-Fixed: 2414912
2019-03-15 15:17:01 -07:00
nshrivas
306daedd5f Release 5.2.0.125Y
Release 5.2.0.125Y

Change-Id: Ic788a73ae5c94cb477e983fdd1077dab93d34017
CRs-Fixed: 774533
2019-03-15 09:14:59 -07:00
Jinwei Chen
332b5cf996 qcacld-3.0: disable 11N RX amsdu
Disable 11N RX amsdu for HST.

Change-Id: If67bb8425174e3ac94f7d0021625d98dc4c82868
CRs-Fixed: 2408772
2019-03-15 09:14:59 -07:00
nshrivas
6726a684f7 Release 5.2.0.125X
Release 5.2.0.125X

Change-Id: I9fdca520a0c7ac11d5fe8b5b969498a73a51baf9
CRs-Fixed: 774533
2019-03-15 07:47:00 -07:00
stonez
2d68648140 qcacld-3.0: Add MPTA helper support
Due to PTA matser limitation, zigbee joining network success rate
is low while wlan is working. Wlan host driver need to configure
some parameters including Zigbee state and specific WLAN periods
to enhance PTA master. This mechanism is called MPTA helper.
Vendor subcommand QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG
is added to realize this feature. NL attributes
qca_mpta_helper_vendor_attr is used to deliver parameters from
uplayer to host driver.

Change-Id: Ic76130e4b92c88e8034f6a0c6c0447c9c6dee945
CRs-Fixed: 2407801
2019-03-15 07:46:59 -07:00
stonez
c9936cb3ed qcacld-3.0: Add INI parameter to enable/disable MPTA helper
Due to PTA master limitation, zigbee joining network success rate
is low while wlan is working. Wlan host driver need to configure
some parameters including Zigbee state and specific WLAN period to
enhance PTA master. This mechanism is called MPTA helper. The INI
parameter gMPTAHelperEnable is used to enable/disable this feature.

Change-Id: I070c06a00ec2c405540cc40251f5cb7fec211cbd
CRs-Fixed: 2407801
2019-03-15 07:46:55 -07:00
Jeff Johnson
10b4fbf861 qcacld-3.0: Rename HDD identifier pMFPRequired
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pMFPRequired to be
compliant.

Change-Id: I4bea75c912505c856381502b225067ed5e0cdbea
CRs-Fixed: 2416636
2019-03-15 07:46:51 -07:00
Jeff Johnson
17e89093c6 qcacld-3.0: Rename HDD identifier pMFPCapable
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pMFPCapable to be
compliant.

Change-Id: I30e04b74e0a00b5c4abd0efe9aa4e8a0002ed499
CRs-Fixed: 2416634
2019-03-15 07:46:46 -07:00
Jeff Johnson
cdde6c3156 qcacld-3.0: Rename HDD identifier mcEncryptType
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier mcEncryptType to be compliant.

Change-Id: Ica46896ac8139dede8f6654acedfec04ed46e4fa
CRs-Fixed: 2416633
2019-03-15 07:46:41 -07:00
Jeff Johnson
4f1be2db2e qcacld-3.0: Rename HDD identifier pAuthType
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pAuthType to be
compliant.

Change-Id: I85a44aff4deca274ae3e35dbda2b05fc59c68d00
CRs-Fixed: 2416635
2019-03-15 07:46:37 -07:00
Jeff Johnson
a376a03996 qcacld-3.0: Rename HDD identifier pEncryptType
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pEncryptType to be
compliant.

Change-Id: I134a791699b9d612bca35028e9f069d43c2adab6
CRs-Fixed: 2416632
2019-03-15 07:46:33 -07:00
Jeff Johnson
b94e64979e qcacld-3.0: Rename HDD identifier dot11RSNIE
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier dot11RSNIE to be compliant.

Change-Id: I07beacb9a5682df858b888cf91715f4b1c233a55
CRs-Fixed: 2416631
2019-03-15 07:46:28 -07:00
Jeff Johnson
6a2c0ca8eb qcacld-3.0: Rename HDD identifier dot11WPAIE
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier dot11WPAIE to be compliant.

Change-Id: I12298bd50ff47511dd9c88a546c66042fe828def
CRs-Fixed: 2416630
2019-03-15 07:46:24 -07:00
Jeff Johnson
ddd05cf29d qcacld-3.0: Rename HDD identifier RSNIeLen
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier RSNIeLen to be compliant.

Change-Id: I3414f964d2a86915a519f74782820854705c90b6
CRs-Fixed: 2416629
2019-03-15 07:46:19 -07:00
Jeff Johnson
d062b8d6d6 qcacld-3.0: Rename HDD identifier pRsnIe
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pRsnIe to be compliant.

Change-Id: I2c2d232f4bc81e5344aa20c93c900aa629467343
CRs-Fixed: 2416628
2019-03-15 07:46:15 -07:00
Jeff Johnson
7f8d2c3d26 qcacld-3.0: Rename HDD identifier rspRsnLength
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier rspRsnLength to be compliant.

Change-Id: Id4be0165f7d94eca3e512e62d4470288a9ae4393
CRs-Fixed: 2416627
2019-03-15 07:46:11 -07:00
Jeff Johnson
48b56b117d qcacld-3.0: Rename HDD identifier rspRsnIe
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier rspRsnIe to be compliant.

Change-Id: Ibb64738f7e7a31bbc29191ac669de2c87c6ed42e
CRs-Fixed: 2416626
2019-03-15 07:46:07 -07:00
nshrivas
510322b46f Release 5.2.0.125W
Release 5.2.0.125W

Change-Id: I06efdcdd36f7fe2fd402ffa90d2ebff5dfb6321b
CRs-Fixed: 774533
2019-03-14 19:27:36 -07:00
Rachit Kankane
def2b174a2 qcacld-3.0: Update ACS channel list with PCL
Current ACS logic sometimes selects MCC channel based on its
algo for SAP / GO which results in SAP / GO bring-up failures.
This issue is seen in below concurrency combinations:
1. SAP + SAP
2. SAP + P2P-GO
3. SAP + SAP + SAP
4. SAP + SAP + P2P-GO

So with this change driver restricts ACS scan to intersection of
PCL and ACS channel list.
This implementation will take care of existing STA + SAP case as well,
as PCL will have channels according to 1st connection being STA.

Change-Id: Ic715fb29533c20b63cffda8a82b7317904f0d291
CRs-Fixed: 2407289
2019-03-14 19:27:35 -07:00
Pragaspathi Thilagaraj
239883a43c qcacld-3.0: Advertise MDIE in FT-FILS authentication frame
IEEE802.11ai standard mandates Mobility domain IE to be
advertised in authentication frames for FT-FILS connection.
With FT-FILS akm suite connection, initial association to the
AP happens with full EAP-8021x handshake. When association to
the AP happens second time, FILS connection with auth algo 4 and
ERP keys exchange happens. During this FILS association, host
driver doesn't send MDIE in the authentication request frame.
This will result in authentication rejection with failure code:
INVALID_MDIE.

Advertise MDIE in authentication frame during FT-FILS initial
mobility domain association.

Also mark the connection as 11r connection in PE session when
the AKM suite is FT-FILS SHA-256 or FT-FILS SHA 384.

Change-Id: I4dbbd9b0ef67ef3a6eb3b8afaaaa22be260d7b3e
CRs-Fixed: 2411728
2019-03-14 19:27:31 -07:00
nshrivas
bf7771a62f Release 5.2.0.125V
Release 5.2.0.125V

Change-Id: Ic54e29eb97e5fd6f178a6024ec6ab2886c5a7e45
CRs-Fixed: 774533
2019-03-14 17:58:48 -07:00
Jianmin Zhu
5bda3acbf0 qcacld-3.0: Don't disable roaming when STA connect with bssid
Issue analysis:
On original android Settings wifi UI, only ssid shows, several
bssid of same ssid is merged as 1 item on wifi list,  user can't
select bssid but ssid.

On some special apps, all AP are shown by bssid on UI, 2 bssid
of same ssid isn't merged, show as 2 items on wifi list, once
user selects 1 item by click, bssid is set.

When connect with bssid, wpa supplicant will disable roaming,
driver will disable roaming offload scan and btm offload too.
In 11K roaming. when AP requires 1 connected STA to roam,
btm request is sent to wpa supplicant,  but wpa supplicant will
send back btm response with reject reason 7:
WNM_BSS_TM_REJECT_NO_SUITABLE_CANDIDATES. AP may kickout STA DUT.

Fix:
APPs usually don't care bssid, even connect with bssid, LFR3/2
roaming should keep enabled and btm offloaded to F/W. F/W will
handle btm req and send btm resp for 11K roaming.

If one special APP wants to fix on one bssid,  it can call
vendor special API to disable roaming:
QCA_NL80211_VENDOR_SUBCMD_ROAMING.
wlan_hdd_cfg80211_set_fast_roaming is called in driver to
disable LFR3/2 and disable btm offload.

AP roaming decision priority is higher than STA, even STA
disabled roaming, refuse roaming after got btm req from AP, AP
can kickout STA for load balance etc.

Change-Id: I498547be7f26392ddd110585d0475b16a4ec8d5c
CRs-Fixed: 2413272
2019-03-14 17:58:47 -07:00
Rakshith Suresh Patkar
6d955269ad qcacld-3.0: Check ini value for pktlog enable in SSR
During SSR/PDR, pktlog will be disabled as part of
hdd_features_deinit if pktlog is enabled in ini.
pktlog will remain disabled until it is manually
enabled.

In SSR case, check if pktlog is enabled in ini and
re-enable pktlog if it is enabled.

Change-Id: Idf683152cfe7ffa8c0248468f9b81f731175cb47
CRs-Fixed: 2412281
2019-03-14 17:58:43 -07:00
nshrivas
a61ba2bb0a Release 5.2.0.125U
Release 5.2.0.125U

Change-Id: I148b92662366892a9afa621b85088147c4f17cf5
CRs-Fixed: 774533
2019-03-14 16:23:27 -07:00
Jeff Johnson
fe31cf5af6 qcacld-3.0: Rename HDD identifier sapEvent
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier sapEvent to be compliant.

Change-Id: Ic5bd0709f62f99da3f3078670a0bb7774b098c83
CRs-Fixed: 2415555
2019-03-14 16:23:26 -07:00
Jeff Johnson
104ced0f2f qcacld-3.0: Remove unused identifier iniConfig
Change I99a2659e2151ad285e9451b9e9cc036a199581a3 ("qcacld-3.0: Remove
legacy scan and ap protection related ini items") removed the last
usage of local variable iniConfig in wlan_hdd_cfg80211_start_bss(), so
remove it.

Change-Id: I110735dc3940150e9de5b71e0911d2fcc9a581e6
CRs-Fixed: 2415554
2019-03-14 16:23:22 -07:00
Jeff Johnson
c17b9006d3 qcacld-3.0: Rename HDD identifier MFPRequired
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier MFPRequired to be compliant.

Change-Id: Ie63644ba0f4c146cf1c29c9b086d402e7e0bd9bc
CRs-Fixed: 2415553
2019-03-14 16:23:18 -07:00
Jeff Johnson
7e6f291655 qcacld-3.0: Rename HDD identifier MFPCapable
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier MFPCapable to be compliant.

Change-Id: Ia40d1c30915aa6ecf6e9908668d4092633079bcd
CRs-Fixed: 2415552
2019-03-14 16:23:13 -07:00
Jeff Johnson
51203af8cd qcacld-3.0: Rename HDD identifier mcRSNEncryptType
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier mcRSNEncryptType to be compliant.

Change-Id: I2d3b7a382ab2fdb0dc3261f92e1251405f759355
CRs-Fixed: 2415551
2019-03-14 16:23:09 -07:00
nshrivas
a10418d9fa Release 5.2.0.125T
Release 5.2.0.125T

Change-Id: I50bf7c98f5d2601a36f151e58199393d2c728a03
CRs-Fixed: 774533
2019-03-14 13:01:20 -07:00
Alok Kumar
b94a2e7f29 qcacld-3.0: Update Arp Stats for both Tx and Rx Arp Packets
Currently rx_arp_resp_count stats is not updated for ARP packet
during rx in htt_rx_amsdu_rx_in_order_pop_ll as packet type is
not marked as QDF_NBUF_CB_PACKET_TYPE_ARP.
Also, track_arp_ip member of adapter is updated during NUD SET
but track_arp_ip of hdd_ctx is used inside hdd_hard_start_xmit
and hdd_rx_packet_cbk to compare arp src ip.

Update the packet type to QDF_NBUF_CB_PACKET_TYPE_ARP for ipv4 ARP
packet during htt_rx_amsdu_rx_in_order_pop_ll.
Use track_arp_ip member of adapter to compare arp src ip.

Change-Id: I58a678caa8ce4b54b583f76cfcbbb4f46443f448
CRs-Fixed: 2405335
2019-03-14 13:01:20 -07:00
Jeff Johnson
784efe29c7 qcacld-3.0: Rename HDD identifier RSNAuthType
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier RSNAuthType to be compliant.

Change-Id: If93efea4637d88a8c59f376fcc905aa4a40de574
CRs-Fixed: 2415550
2019-03-14 13:01:15 -07:00
Jeff Johnson
84b3433a66 qcacld-3.0: Rename HDD identifier neighborReq
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier neighborReq to be compliant.

Change-Id: I07649d9aa0ab26b69d6a1fbf7ea05ac5ce3f307f
CRs-Fixed: 2415549
2019-03-14 13:01:10 -07:00
nshrivas
2585f96e6c Release 5.2.0.125S
Release 5.2.0.125S

Change-Id: I4fc0710a17fefef7adff21c03b49acb97e4bfcdf
CRs-Fixed: 774533
2019-03-14 11:17:54 -07:00
Abhinav Kumar
667b6b48ea qcacld-3.0: Ignore update of HT info for Invalid channel
Currently, driver updates lim global structure, if channel switch
parameters in the beacon/probe rsp have changed. And sends an
indication to HAL with the updated HT parameters. In case if
channel pHTInfo->primaryChannel obtained from a beacon or probe
response is invalid, driver still allows fw to switch to an
invalid channel results assert in fw.

Fix is to ignore HT channel switch parameters updates if an
invalid channel present in beacon or probe response.

Change-Id: I92d9d0917077300f719068e1e0e5cfc282010dba
CRs-Fixed: 2414170
2019-03-14 11:17:54 -07:00