Commit Graph

8885 Commits

Author SHA1 Message Date
Abhishek Singh
a6e5c3f0bf qcacld-3.0: Change default value of pcl_weightage to 10
Change default value of pcl_weightage to 10, so that PCL weightage
is used while connecting to a profile to select best BSS.

Change-Id: Ic074e01480d32510fb355846d92cb81d01e6e0d8
CRs-Fixed: 2206140
2018-03-15 11:51:02 -07:00
nshrivas
b6b0760f6f Release 5.2.0.69X
Release 5.2.0.69X

Change-Id: Ic0c289617ddcd50c7e7400432eaf2b99c98e8deb
CRs-Fixed: 774533
2018-03-15 09:32:42 -07:00
Yeshwanth Sriram Guntuka
a3f8d57005 qcacld-3.0: Update tx params if 2.4G APs min supported rate is 6Mbps
In STA mode, tx params for auth and assoc req frame
are not updated if minrate is 1 or 6Mbps as these
are the default rates for 2.4G and 5G respectively.
If 2.4G APs min supported rate is 6Mbps, the tx params
are not updated which results in auth and assoc req
frame transmitted at 1Mbps.

Fix is to update tx params if minrate is 6Mbps and
AP is operating in 2.4G.

Change-Id: Ia12c7b13cfb93e2d3b5a4ae124003248fa109e3f
CRs-Fixed: 2205282
2018-03-15 09:32:41 -07:00
Tiger Yu
f3d5d7f5f1 qcacld-3.0: Do not enable the pktlog when interface is up
The pktlog will be enabled when interface is up. Which might affect
the performance heavily. So do not enable it at the initialization
to avoid this side effect.

Change-Id: Ie03a7e0a77bc5f525ad7ae74bb104a6d1bf21eb7
CRs-Fixed: 2206216
2018-03-15 09:32:35 -07:00
nshrivas
e78aede884 Release 5.2.0.69W
Release 5.2.0.69W

Change-Id: I2a32a8c846bfce192dc209ac5106280bf981b65c
CRs-Fixed: 774533
2018-03-15 08:04:58 -07:00
Dustin Brown
e74003faac qcacld-3.0: Rename ENTER/EXIT macros (part 3)
In order to better align with the rest of the driver, rename the
following macros:
 * ENTER -> hdd_enter
 * ENTER_DEV -> hdd_enter_dev
 * EXIT -> hdd_exit

For part 3, migrate usages of EXIT

Change-Id: I0868800b694c92d2ad157394d619c05f89dd222d
CRs-Fixed: 2205840
2018-03-15 08:04:58 -07:00
Zhu Jianmin
6a7b702184 qcacld-3.0: Fix ifconfig wlan0 up failed on Rome
Fix 2 sub issues:
1. wlan_hdd_update_dbs_scan_and_fw_mode_config and
sme_soc_set_dual_mac_config is called in
hdd_wlan_start_modules->hdd_configure_cds->hdd_features_init,
before hdd_start_adapter,  so vdev isn't created yet,
csr_queue_sme_command returned failed

Fixed by moving wlan_hdd_update_dbs_scan_and_fw_mode_config to
end of hdd_start_adapter

2. Rome doesn't support DBS, doesn't support cmd and wmi service
WMI_PDEV_SET_MAC_CONFIG_CMDID. so no response event for the cmd,
the cmd can't be removed from active list. so next cmd:
WMA_ADD_STA_SELF_REQ can't be executed at all, no complete event
for sme_open_session, hdd_init_station_mode failed

Fixed by checking whether support HW DBS before
sme_soc_set_dual_mac_config

Change-Id: Iec2ef7e77e91f332028904c319d24e1ed134306d
CRs-Fixed: 2202262
2018-03-15 08:04:55 -07:00
Rajeev Kumar
f5a17acdc7 qcacld-3.0: Remove redundant extern keyword from wext public APIs
Some of wext public APIs are declared using extern storage
class specifier which is not needed hence clean up extern
keyword from wext public API declarations from wlan_hdd_wext.h

Change-Id: Ib1fe79a94b62bc457784340a7e930489fffe98f9
CRs-Fixed: 2202699
2018-03-15 08:04:52 -07:00
Dustin Brown
5e89ef8673 qcacld-3.0: Remove hdd_notice
hdd_notice() is a redundant re-definition of hdd_info(), so remove it.
Replace existing usages with hdd_info() or hdd_debug() as appropriate.

Change-Id: Ie8ce7530c0118eff740975dcce396b68c2115429
CRs-Fixed: 2205815
2018-03-15 08:04:50 -07:00
Himanshu Agarwal
813b2bf082 qcacld-3.0: Handle concurrency for green AP component
Invoke green AP start/stop based on the current concurrency
and present state of green AP state machine.

Change-Id: I5648d236e6492f326c7ba9951da550e229352412
CRs-Fixed: 2173952
2018-03-15 08:04:47 -07:00
Rachit Kankane
0baf6e723f qcacld-3.0: Compile out MTRACE feature
Fix to disabled MTRACE feature

Change-Id: I400933feecc54b46bd9aebdbc2cb5440c882112b
CRs-Fixed: 2189869
2018-03-15 08:04:44 -07:00
nshrivas
26da5bba98 Release 5.2.0.69V
Release 5.2.0.69V

Change-Id: I081c54eaf7b87d367ec010020f7783a8bdd1339f
CRs-Fixed: 774533
2018-03-15 06:08:38 -07:00
Dustin Brown
bacc48f334 qcacld-3.0: Remove redundant FL in HDD
The hdd_* logging wrappers already inject the calling function and line
number information, but several consumers are wrapping the format string
in a call to FL, which does the same thing. Remove redundant calls to FL
in HDD.

Change-Id: Ieb3e54f707579296fbfdbce74496800cf14ecd0a
CRs-Fixed: 2205912
2018-03-15 06:08:38 -07:00
Dustin Brown
fdf17c1e26 qcacld-3.0: Rename ENTER/EXIT macros (part 4)
In order to better align with the rest of the driver, rename the
following macros:
 * ENTER -> hdd_enter
 * ENTER_DEV -> hdd_enter_dev
 * EXIT -> hdd_exit

For part 4, migrate usages of ENTER_DEV

Change-Id: I53628486c9acf5c444c2a97c40ab02324e9a00d7
CRs-Fixed: 2205843
2018-03-15 06:08:35 -07:00
bings
3fe5bc31bf qcacld-3.0: Configure phyerr filter offload before sap starts
Do not send phyerr filter offload to FW when dfs module is doing
initialization, because in target_if_dfs_set_phyerr_filter_offload
routine GET_WMI_HDL_FROM_PDEV returns NULL at this time.

Configure phyerr filter offload before sap starts.

Change-Id: I60436fc1e142937383a3714c727166bc5fa8d0db
CRs-Fixed: 2205229
2018-03-15 06:08:32 -07:00
nshrivas
e2b1cb8076 Release 5.2.0.69U
Release 5.2.0.69U

Change-Id: I59c3142dc72e7901a9997346185eb5e3d8e76403
CRs-Fixed: 774533
2018-03-15 04:25:59 -07:00
Surabhi Vishnoi
75b1a81aea qcacld-3.0: Modify the arguments of wmi_unified_attach
The params are passed individually as argument in wmi_unified_attach.
Instead of individual params, use a struct for wmi attach params.
Also pass max commands as param in wmi attach.

CRs-Fixed: 2192801
Change-Id: I28d5985655b436da048d72d33fe0fb4f57e85a50
2018-03-15 04:25:59 -07:00
nshrivas
0d396a2711 Release 5.2.0.69T
Release 5.2.0.69T

Change-Id: I3d0812020675809fd7c8dcf75e0ecb8b5e67bbbf
CRs-Fixed: 774533
2018-03-14 22:34:04 -07:00
nshrivas
8ebf09757a Release 5.2.0.69S
Release 5.2.0.69S

Change-Id: Ia5fa1c45d7ea9aec0c263f28abdd12b6bcd784dc
CRs-Fixed: 774533
2018-03-14 17:58:35 -07:00
Dustin Brown
32a6118d85 qcacld-3.0: Rename ENTER/EXIT macros (part 1)
In order to better align with the rest of the driver, rename the
following macros:
 * ENTER -> hdd_enter
 * ENTER_DEV -> hdd_enter_dev
 * EXIT -> hdd_exit

For part 1, introduce the new macros

Change-Id: I82fed51ed676041352acfeff20923c58ade4a826
CRs-Fixed: 2205830
2018-03-14 17:58:34 -07:00
nshrivas
d9d256c172 Release 5.2.0.69R
Release 5.2.0.69R

Change-Id: I7027842ea5c6c5d7bb88ed91febf84440eee34c6
CRs-Fixed: 774533
2018-03-14 15:53:08 -07:00
Rajeev Kumar
3f5c593023 qcacld-3.0: Ignore qdf debug fs create failure during init
Debug fs create failure should not fail wifi turn on. Add logic
to allow wifi turn on even if kernel debug fs create API returns
failure.

Change-Id: I02ce1ae4022f6590b29b8666bbe39c7387e8d0dd
CRs-Fixed: 2203329
2018-03-14 15:53:08 -07:00
Manikandan Mohan
04459b9cf8 qcacld-3.0: Fix errors of multi driver compilation
Qcacld supports multiple driver modules instance generation with
different file names and Kbuild options. Fix driver load time and
compilation errors on this feature.

Change-Id: Ib405e6c475bace31933a28dc64082f2b6c046da9
CRs-fixed: 2197749
2018-03-14 15:53:05 -07:00
Rajeev Kumar
807c5f5193 qcacld-3.0: Register fw down callback with QDF
Register fw down callback with QDF such that new UMAC
components can check if FW is down or not.

Change-Id: I394860324368d7671f83536791b021109ddb39aa
CRs-Fixed: 2202602
2018-03-14 15:53:01 -07:00
Rajeev Kumar
c9518ef38c qcacld-3.0: Clean up obsolete INI item gEnableFwSelfRecovery
Config ini item gEnableFwSelfRecovery is obsolete and no longer used
hence remove it.

Change-Id: I3b7f8662cb42f74d217dbdf3b2c3512176e2833e
CRs-Fixed: 2202033
2018-03-14 15:52:58 -07:00
nshrivas
7168432dc4 Release 5.2.0.69Q
Release 5.2.0.69Q

Change-Id: Id60d3d863a2fc1f35d118eaa02ac5b50ec8ab67a
CRs-Fixed: 774533
2018-03-14 09:57:04 -07:00
Himanshu Agarwal
29a9a3e912 qcacld-3.0: Downgrade bandwidth to 40Mhz in 2.4Ghz case
When the channel list contains only 2.4Ghz channels and
bandwidth is coming as 80Mhz in __wlan_hdd_cfg80211_do_acs(),
max weight gets assigned to all the channels irrespective of
scan results and channel 1 gets selected in the end.

Downgrade bandwidth to 40Mhz if channel list contains only 2.4Ghz
channels and bandwidth is coming as 80Mhz.

Change-Id: I0e54b5db0020768c219acc0d864e72813c9185e9
CRs-Fixed: 2193438
2018-03-14 09:57:03 -07:00
nshrivas
9e0ee7c006 Release 5.2.0.69P
Release 5.2.0.69P

Change-Id: Ib56c8ef8591795a2a474e27970083f44fac6a5aa
CRs-Fixed: 774533
2018-03-14 07:04:59 -07:00
Sourav Mohapatra
92ea8d67eb qcacld-3.0: Add support for recovery in FTM mode
While the driver is in FTM state, if a PDR is encountered
the driver is not allowed to recover.

Allow the recovery of the driver after PDR in FTM mode.

Change-Id: Ib4ee3970067a9fde5ba12d4dd954774a16ef0255
CRs-Fixed: 2181509
2018-03-14 07:04:59 -07:00
nshrivas
b9b6d6422d Release 5.2.0.69O
Release 5.2.0.69O

Change-Id: I6272f3312ee925f2990e922e73a0b78f4c18231f
CRs-Fixed: 774533
2018-03-14 01:48:54 -07:00
jitiphil
5256306ace qcacld-3.0: Fix access to ol_rx_thread after thread shutdown
Currenty we are trying to access the ol_rx_thread in
ds_cpu_hotplug_notify function after we shut the thread
down in cds_sched_close function

To address the issue keep a NULL check for the ol_rx_thread

Change-Id: Icddd3ace52bbe773790546d1ace1fd463bc1a7e7
CRs-Fixed: 2200501
2018-03-14 01:48:54 -07:00
nshrivas
2cf46f639a Release 5.2.0.69N
Release 5.2.0.69N

Change-Id: I55bd4ccac20c3855be927151cf88989c93625bcf
CRs-Fixed: 774533
2018-03-13 23:18:04 -07:00
Zhang Qian
2ad31da36d qcacld-3.0: Fix the dsrc_config fail issue
qcacld-2.0 to qcacld-3.0 Propagation.

Revert the changes of Validating NLA attr in
wlan_hdd_cfg80211_ocb_set_config API to fix the
dsrc_config fail issue.

CRs-Fixed: 2109727
Change-Id: I5037498a510820a86cba9e61149640a957b46086
2018-03-13 23:18:03 -07:00
Pragaspathi Thilagaraj
fda1af6bef qcacld-3.0: Fix OOB write in wma_passpoint_match_event_handler
In the function wma_passpoint_match_event_handler, fixed param event data
from firmware is filled in the destination buffer and indication is sent
to upper layers. The buffer allocation is done for the size
(wmi_passpoint_event_hdr*) + event->ie_length + event->anqp_length. The
maximum firmware event message size is WMI_SVC_MSG_MAX_SIZE. If either,
ie_length and anqp_length combined is greater than WMI_SVC_MSG_MAX_SIZE or
either of the two exceeds WMI_SVC_MSG_MAC_SIZE, an OOB write will occur in
wma_passpoint_match_event_handler.

Add check to ensure either of the values ie_length or anqp_lenth or
(ie_length + anqp_length) doesnt exceed the WMI_SVC_MAX_SIZE. Return
failure if it exceeds.

Change-Id: I21f473ca0b99ebb8488f2cca3c0774817ea97c3a
CRs-Fixed: 2201190
2018-03-13 23:18:00 -07:00
nshrivas
436e8df2c7 Release 5.2.0.69M
Release 5.2.0.69M

Change-Id: Ied3870a88e34f86943936192c248f6200e7027a4
CRs-Fixed: 774533
2018-03-13 21:01:09 -07:00
Arif Hussain
d54b62c7ca qcacld-3.0: Add dfs phyerr processing
Add dfs phy error processing code.

Change-Id: I756df1052bc563d312112a7c2250f2b34224eae9
CRs-Fixed: 2203434
2018-03-13 21:01:08 -07:00
nshrivas
dad69e35d6 Release 5.2.0.69L
Release 5.2.0.69L

Change-Id: I8e0234af299feec685cf49fbc627f1247847915b
CRs-Fixed: 774533
2018-03-13 18:41:49 -07:00
Naveen Rawat
56d5e0b7e0 qcacld-3.0: Allow tx/rx chainmask value to be 3
Allow tx/rx chainmask value to be 3, which indicates use both chains.

Change-Id: I95779ff97dca6538312177443163dc7276985fb9
CRs-Fixed: 2183831
2018-03-13 18:41:48 -07:00
Naveen Rawat
807b6d07ac qcacld-3.0: Ensure BSS color is within 1-63 when not specified
Randomize bss color within 1 to 63 When hostapd.conf does not specifies
bss color parameter.

Change-Id: I5650d15836e19bd0efc226f86b22a8697e45c59e
CRs-Fixed: 2200411
2018-03-13 18:41:45 -07:00
Kiran Kumar Lokere
96180e1324 qcacld-3.0: Set addba response buffer size to default value
Set the default addba buffer size to 64 and advertise the default
value in addba response frame.

Change-Id: I8eec73c0907b42414bc742ae01b921b9e4e5b6d5
CRs-Fixed: 2204110
2018-03-13 18:41:42 -07:00
Jeff Johnson
c9af2ccae8 qcacld-3.0: Remove DPU signatures from TDLS Add STA Response
The ucastSig and bcastSig fields in tSirTdlsAddStaRsp date back
to a previous version of the driver that used these signatures to
synchronize the data plane with the control plane. However the current
version of the driver does not use these parameters, so remove them as
the final stage of the plan to completely remove these signatures from
throughout the driver.

Since the legacy tSirTdlsAddStaRsp data structure must exactly match
the converged struct tdls_add_sta_rsp, this change is co-dependent
with the qca-wifi-host-cmn change:
  qcacmn: Remove DPU signatures from TDLS Add STA Response
  Change-Id: I7750fac9e4870d75358606bea427a5dbab97c665

Change-Id: I765b090fc5dbe9bdaf83b05a72223c0a12f71a18
CRs-Fixed: 2200996
2018-03-13 07:34:57 -07:00
Jeff Johnson
582a3382c3 qcacld-3.0: Remove obsolete use of DPU signatures
In a previous version of the driver both unicast and broadcast DPU
signatures were used to synchronize the data plane with the control
plane. However the current version of the driver does not use this
synchronization mechanism, so remove propagation of the DPU signatures
from the UMAC. This is part of the plan to completely remove these
signatures from throughout the driver.

Change-Id: I6a1808d0905bb0c4550b16cf2b2157a529caa9e9
CRs-Fixed: 2200997
2018-03-13 07:34:56 -07:00
Jeff Johnson
5cc21cea5b qcacld-3.0: Remove DPU signatures from struct csr_roam_info
In a prior version of the driver DPU signatures were used to
synchronize the Data Plane with the Control Plane. The DPU signatures
were provided to HDD by SME via fields in struct csr_roam_info, and
then HDD provided the fields to the Data Plane. But that mechanism is
no longer used and HDD does not read these fields so remove them along
with the logic that is currently used to fill them.

Change-Id: Ib056c20683e6b4f0d969fcff227476d53e040cc0
CRs-Fixed: 2200995
2018-03-13 07:34:56 -07:00
nshrivas
2f7788116e Release 5.2.0.69K
Release 5.2.0.69K

Change-Id: I4c053cd99c249ed634618b5d9d70c05fce5f6f47
CRs-Fixed: 774533
2018-03-12 20:24:13 -07:00
Paul Zhang
679025e5de qcacld-3.0: set hdd_reassoc_scenario per dev mode
Currently, hdd_reset_all_adapters will set hdd_reassoc_scenario
as "false" no matter what adapter's dev mode. It may pollute the
session.ap's content.

Change-Id: I339982e5454d7ef5bd4325b0901c4a81ceed6ab9
CRs-Fixed: 2201535
2018-03-12 20:24:12 -07:00
nshrivas
1b0374bf81 Release 5.2.0.69J
Release 5.2.0.69J

Change-Id: I92e4ae0dbbb95b2409ba4c41e837753f3df108e1
CRs-Fixed: 774533
2018-03-12 19:27:37 -07:00
nshrivas
bc2da65928 Release 5.2.0.69I
Release 5.2.0.69I

Change-Id: I7721e921163db84e25b62149f4311efd396faa30
CRs-Fixed: 774533
2018-03-12 15:57:36 -07:00
Naveen Rawat
1ade9a8ff9 qcacld-3.0: Add __must_check attribute to dot11f_unpack functions
dot11f_unpack functions return error which must be checked.

Change-Id: I7b965ef117c6b2069975d6545b39016cd6f2c5e9
CRs-Fixed: 2175592
2018-03-12 15:57:36 -07:00
Naveen Rawat
72475db24a qcacld-3.0: Check for return codes of dot11f_unpack functions
Add checks for return codes of dot11f_unpack functions.

Change-Id: I56149a2a767a9f13009710750a0588c0d658eb56
CRs-Fixed: 2175592
2018-03-12 15:57:33 -07:00
Kiran Kumar Lokere
9f881ae660 qcacld-3.0: Send WMI custom aggr size cmd for ampdu config
Send custom aggregation size WMI command for user ampdu
configuration

Change-Id: If2157745fa51764595d496604e6f33f2768c35f7
CRs-Fixed: 2201874
2018-03-12 15:57:31 -07:00
nshrivas
eeb2c7ea5a Release 5.2.0.69H
Release 5.2.0.69H

Change-Id: Id4152b686957e77c55f9e92db06b236c730f947b
CRs-Fixed: 774533
2018-03-12 09:35:25 -07:00
Jeff Johnson
1d40f5b3f9 qcacld-3.0: Use new TDLS peer callback interface
Change "qcacmn: Introduce new versions of TDLS peer callbacks"
(Change-Id Id4ea23266b0f3e1480b645c5afce6c17585ccb46 in project
qca-wifi-host-cmn) introduced a new interface which removed an unused
parameter and changed obsolete naming. Update qcacld-3.0 to use this
new interface.

Change-Id: I5c4684ac0a62f314da26f92ece2c9a9874d63634
CRs-Fixed: 2200993
2018-03-12 09:35:24 -07:00
nshrivas
c6c839937d Release 5.2.0.69G
Release 5.2.0.69G

Change-Id: I9bd21d09390de811f7a4709be551c12a51ede8ee
CRs-Fixed: 774533
2018-03-12 04:14:54 -07:00
Tiger Yu
94a5a5c414 qcacld-3.0: Deinit TX/RX module when reset all adapters
The hdd_reset_all_adapters won't reset the txrx_vdev & tx_fn in the
adapter, which will cause the issue if the OS still deliver the packet
before the txrx_vdev registered again after SSR happens.

Deinit TX/RX module when doing reset all adapters during the SSR
procedure to avoid this problem.

Change-Id: Ia16b488c63b691fe9c3cc8c2cd49913b27cc32f0
CRs-Fixed: 2197248
2018-03-12 04:14:54 -07:00
nshrivas
6557e20460 Release 5.2.0.69F
Release 5.2.0.69F

Change-Id: Ibf5c69a7fdca5837275e0cb8a927a3fd9069bcb8
CRs-Fixed: 774533
2018-03-12 03:20:56 -07:00
Rachit Kankane
0247191755 qcacld-3.0: Align structure to reduce Data Segment
Aligning structure variables properly can reduce memory requirement
of data segment. Thereby reduces over all memory requirement.

Change-Id: I8b1a704cb6ed852d23111b6ee9d14c883b889a78
CRs-Fixed: 2203674
2018-03-12 03:20:55 -07:00
nshrivas
af97bb20ed Release 5.2.0.69E
Release 5.2.0.69E

Change-Id: I7e4c3e0dfd01e37246331f45b3da8d8c12097c24
CRs-Fixed: 774533
2018-03-11 22:34:50 -07:00
Sourav Mohapatra
412ceb9fbf qcacld-3.0: Allow vendor command to run without interface up
In the present scenario, the vendor command
wlan_hdd_cfg80211_get_logger_supp_feature has the flag
WIPHY_VENDOR_CMD_NEED_RUNNING set which requires the net device
to be up and running for the API to work. This is not necessary
as the command doesnot need the net dev to be active.

Remove the flag so that the command returns the proper results
even when the net device is not running

Change-Id: I2dd9d801aa474cda2a3f6292d6b94df18797be02
CRs-Fixed: 2202096
2018-03-11 22:34:49 -07:00
nshrivas
9bb7ba43de Release 5.2.0.69D
Release 5.2.0.69D

Change-Id: Idb776e953099ea951df63d5c997cead7cad0f83b
CRs-Fixed: 774533
2018-03-11 01:25:56 -08:00
Arif Hussain
eb8ba363b1 qcacld-3.0: Send edca params to firmware
Send all user requests to update edca parms to firmware.

Change-Id: I2b7e884d004c94f71bb5c29583b188ce3681ab0b
CRs-Fixed: 2202046
2018-03-11 01:25:56 -08:00
nshrivas
eccbc8842c Release 5.2.0.69C
Release 5.2.0.69C

Change-Id: Ib6b7c967e81553e4074bbe44abb09163002e63e9
CRs-Fixed: 774533
2018-03-10 01:07:46 -08:00
Min Liu
a3e84abadc qcacld-3.0: Add NULL pointer check
Add NULL pointer check for reg_cap_ptr in
hdd_objmgr_create_and_store_pdev

Change-Id: I379e227302f70d83e26a8a418889f7718dc5a0dd
CRs-Fixed: 2202943
2018-03-10 01:07:45 -08:00
nshrivas
5d2c3ccccf Release 5.2.0.69B
Release 5.2.0.69B

Change-Id: I8d27c1b5548d8a00b62eabd76cd8306f8e163d71
CRs-Fixed: 774533
2018-03-09 17:30:24 -08:00
Krunal Soni
01507bd566 qcacld-3.0: (PART-3) Remove obsoleted enums in SME module
Remove some of the obsoleted enums and structure's members
in SME module

Change-Id: Ia453fcd2ba41a939964b6e481195c6bc64de6ab6
CRs-Fixed: 2201799
2018-03-09 17:30:23 -08:00
Krunal Soni
e608a27cb8 qcacld-3.0: Remove obsoleted INI called gFixedRate
Latest driver is not using "gFixedRate" INI anymore and this INI
is not doing any meaningful work, so remove it.

Change-Id: Icf7ef052a722f25c4338dd8086b14ce01c6176d8
CRs-Fixed: 2201799
2018-03-09 17:30:20 -08:00
Krunal Soni
cbfdb12cfa qcacld-3.0: (PART-2) Remove obsoleted APIs in SME module
Remove some of the obsoleted APIs in SME module

Change-Id: Ia4f890706769e5ace1dcff2d57fb33f6e67e1297
CRs-Fixed: 2201799
2018-03-09 17:30:18 -08:00
Krunal Soni
795f9c2733 qcacld-3.0: (PART-1) Remove obsoleted APIs in SME module
Remove some of the obsoleted APIs in SME module

Change-Id: If865445d564a89bde133ca32272fff9594ce44fd
CRs-Fixed: 2201799
2018-03-09 17:30:15 -08:00
nshrivas
73de27ca93 Release 5.2.0.69A
Release 5.2.0.69A

Change-Id: I10eddbb794bff4119eb3b34444066263d56575d6
CRs-Fixed: 774533
2018-03-09 00:10:34 -08:00
Kiran Kumar Lokere
3324f63c57 qcacld-3.0: Add support to set no ack policy for ac
Add support to configure no ack policy for WMM access category.

Change-Id: Idf87507b78cdaf0ac8fdfc975e4fcbe0957423fa
CRs-Fixed: 2198241
2018-03-09 00:10:33 -08:00
nshrivas
41e4cc6ece Release 5.2.0.69
Release 5.2.0.69

Change-Id: Ia786bc81ea46e330272d657b388f0fe12084e2c0
CRs-Fixed: 774533
2018-03-08 22:06:04 -08:00
Venkata Sharath Chandra Manchala
1e58110314 qcacld-3.0: Forward channel id to txrx_stats
Forward channel id to txrx_stats to set the right pdev mask
in htt stats msg

Change-Id: Iab0e565d3e827b0fcbe65c24d4de431a3aee0248
CRs-Fixed: 2194439
2018-03-08 22:06:04 -08:00
Kiran Kumar Lokere
bc87bec984 qcacld-3.0: Add support to send ADDBA with user config
Add support to send ADDBA request with user configured buffer
size and tid and ADDBA response with user configured buffer
size.

Change-Id: I2a1dfedadeb68a1cfca9a6eba8e7775d0bb51d1a
CRs-Fixed: 2193872
2018-03-08 22:06:01 -08:00
nshrivas
aa6bc1b069 Release 5.2.0.68Z
Release 5.2.0.68Z

Change-Id: I536b85c1aae4b31fb677ba12e83ad27f335386d5
CRs-Fixed: 774533
2018-03-08 18:46:54 -08:00
Naveen Rawat
d24c116d75 qcacld-3.0: Program phymode before channel width for CSA handling
In CSA handling after vdev restarts, program peer_phymode before peer_ch_wd
to firmware, since firmware cannot handle higher channel width than current
peer_phymode.

Change-Id: I12ce1a6e6c0af758e1ecc9c1d272320e5e800983
CRs-Fixed: 2201944
2018-03-08 18:46:51 -08:00
Arif Hussain
2f2d351cc1 qcacld-3.0: Update bss color on bss color switch count zero
Update bss color on color switch count zero.

Change-Id: I60eadd5454768bc1a5cabaead4ce1f966e4a0f6b
CRs-Fixed: 2200419
2018-03-08 18:46:48 -08:00
Will Huang
5561cb3c00 qcacld-3.0: Add load/unload status check before wlan_hdd_mgmt_tx
If wlan_hdd_mgmt_tx is called while unload in progress, it is possible
ROC scan can't be canceled, cds_ssr_protect already prevent
wlan_hdd_mgmt_tx running before unloading, we must also prevent it
running after it.

Change-Id: Ic8d981c9be2a2b33079c4e3c9a18a4d8bce48956
CRs-Fixed: 2202026
2018-03-08 18:46:44 -08:00
Abhishek Singh
3ed00d11ba qcacld-3.0: Avoid TDLS entry with MAC same as existing non-TDLS peer
In lim_tdls_setup_add_sta() even if a pStaDs is already present and
is a non TDLS peer, the driver proceed assuming it as TDLS peer and
update its type and states.

Now when driver tries to delete this non TDLS peer, as its states
and type are modified it fails to properly clean up the peer.

Fix it by allowing only TDLS entry to be updated. Also ignore if a
entry is already present and the operation is TDLS add.

Change-Id: I65fc73d65cdf768fd5b8afd050ca7314fd55c9ff
CRs-Fixed: 2200498
2018-03-08 18:46:41 -08:00
Rachit Kankane
b103562c27 qcacld-3.0: Add HTC Credit History Feature flag
Add compilation flag to compile out HTC credit History
feature cleanly from the cld-3.2 driver binary.

Change-Id: I5f5e73e430d282c99d3077fb82ed1cb8eb79715a
CRs-Fixed: 2190545
2018-03-08 18:46:38 -08:00
Jeff Johnson
111ad91fa3 qcacld-3.0: Remove obsolete hdd_qdf_event
Change "qcacld-3.0: Use Request Manager for ioctl getWlanStats"
removed the only user of item hdd_qdf_event in struct hdd_wext_state,
so completely remove it.

Change-Id: Ifc00f6dc396ca5f6e59b3895a6c9467179073218
CRs-Fixed: 2202506
2018-03-08 10:32:50 -08:00
Jeff Johnson
ced658b0aa qcacld-3.0: Use Request Manager for ioctl getWlanStats
Currently the handling of private ioctl getWlanStats uses a legacy
mechanism for coordinating the request with the response. Change this
to use the HDD Request Manager.

Change-Id: I7e8333cf8d2e651e04509e3370c30d8a6425bdca
CRs-Fixed: 2202504
2018-03-08 10:26:46 -08:00
Jeff Johnson
d37833f995 qcacld-3.0: Relocate hdd_statistics_cb()
Function hdd_statistics_cb() is registered as a callback function by
__iw_get_statistics() when calling sme_get_statistics(). Since
hdd_statistics_cb() and __iw_get_statistics() are tightly coupled it
makes sense for them to be co-located, but currently they are
not. Therefore relocate hdd_statistics_cb() to be adjacent to
__iw_get_statistics(). Note that this is a precursor to further
cleanup of this pair of functions.

Change-Id: Ie36d107d9ef2e541444c5fb9d7bfba7e9e82c1e6
CRs-Fixed: 2201907
2018-03-08 10:24:25 -08:00
nshrivas
cb37b44fe7 Release 5.2.0.68Y
Release 5.2.0.68Y

Change-Id: I37e6b7750067dd8008bce90b475b13dc41e6dbbb
CRs-Fixed: 774533
2018-03-07 17:28:51 -08:00
Jeff Johnson
a8ce12744d qcacld-3.0: Remove unused hdd_roam_register_tdlssta() param
The parameters to function hdd_roam_register_tdlssta() currently
includes ucastSig. This "signature" parameter dates back to a previous
version of the driver that used signatures to synchronize the data
plane with the control plane. However the current version of the
driver does not use this parameter, so remove it as part of the plan
to completely remove these signatures from throughout the driver.

Change-Id: Iee51d79e58501e3e8312c6c7a21b98c1ae6bf268
CRs-Fixed: 2200886
2018-03-07 17:28:51 -08:00
Jeff Johnson
3f6c89f77d qcacld-3.0: Remove unused hdd_softap_register_sta() params
The parameters to function hdd_softap_register_sta() currently include
ucastSig and bcastSig. These "signature" parameters date back to a
previous version of the driver that used these signatures to
synchronize the data plane with the control plane. However the current
version of the driver does not use these parameters, so remove them as
part of the plan to completely remove these signatures from throughout
the driver.

Change-Id: I1f1f1fb1ef553d36ba0f4902ab29b2b4852ae5ca
CRs-Fixed: 2200356
2018-03-07 17:28:48 -08:00
nshrivas
9399ffc507 Release 5.2.0.68X
Release 5.2.0.68X

Change-Id: I3922e0e3895c19ed0d568da497f02e90a8377b4c
CRs-Fixed: 774533
2018-03-07 16:27:55 -08:00
Yeshwanth Sriram Guntuka
2d6204f944 qcacld-3.0: Add support for HW mode info vendor command
Add support for HW mode info vendor command which sends
mac id, band, interface id and frequency information for
each MAC provided by driver to userspace.

Change-Id: If1112d29b8781cf5ba0480c84feeb772142f2c0e
CRs-Fixed: 2160531
2018-03-07 16:27:54 -08:00
nshrivas
c96c04c5b2 Release 5.2.0.68W
Release 5.2.0.68W

Change-Id: I0b9067bf554931002bc880ea4e12e758b6b598cc
CRs-Fixed: 774533
2018-03-07 03:55:28 -08:00
jiad
da34c57e5d qcacld-3.0: Fix wlan load failure when IPA uc not ready
In IPA offload case, if wlan driver is loaded before IPA uC is ready,
error is returned in hdd_ipa_init, which leads to whole driver load
failure. This is not the case since IPA driver provides wlan driver
a notify callback where IPA will invoke this callback when IPA uC
is ready.

Fix is to not return error if IPA uC is not ready during wlan loading
phase.

Change-Id: I98382abbb3bb3b1176f3be41228ac260c1017c24
CRs-Fixed: 2198998
2018-03-07 03:55:24 -08:00
nshrivas
0f4eff8648 Release 5.2.0.68V
Release 5.2.0.68V

Change-Id: I5a457c84f8f8f4cc1c0a3e6f8e27b98a450dae79
CRs-Fixed: 774533
2018-03-07 01:37:34 -08:00
Padma, Santhosh Kumar
7eecb5afbb qcacld-3.0: Consider SSID from supplicant
There is a chance that SSID may be NULL in IE's received by driver
and driver publishes the same in association request which is not
expected. Always consider SSID from supplicant which is valid in
all scenarios to fix this.

Specific scenario:
OWE SSID is hidden in OWE transition mode. When supplicant detects
connection to OWE transition mode, it issues connect with required
SSID to driver. But that ssid does not present in driver scan cache
as it is hidden. Instead of this ssid, driver scan cache has NULL
entry. Driver uses this NULL entry in association request which is
not expected.

Change-Id: I7ceb712db87d6c7f73c7483f74d402b1ab3e30db
CRs-Fixed: 2197532
2018-03-07 01:37:33 -08:00
Abhishek Singh
f1c1676351 qcacld-3.0: Fix memory corruption due to wlan_hdd_add_age_ie
In wlan_hdd_add_age_ie the mgmt->u.probe_resp.variable is type casted
to qcom_ie_age, before incrementing the mgmt->u.probe_resp.variable
to get the qcom_ie_age pointer. This leads to memory corruption.

Fixed by typecasting the pointer once the qcom_ie_age pointer is
derived by incrementing the offset of qcom_ie_age from
mgmt->u.probe_resp.variable.

Change-Id: Iafcdb5c17f0d9c234687ddcc6f8b9100b21cc957
CRs-Fixed: 2201303
2018-03-07 01:37:30 -08:00
nshrivas
b903b6eeb4 Release 5.2.0.68U
Release 5.2.0.68U

Change-Id: Ic1a97882bf00a6587252460c7700216690c2e2c5
CRs-Fixed: 774533
2018-03-06 23:45:09 -08:00
Krunal Soni
40c5e4425a qcacld-3.0: Self peer req is not handled properly causes P2P failure
1) When wma_self_peer_remove() API returns failure, driver triggers
recovery without checking if driver unload is in progress which may
cause driver to go in bad state.

2) when wma_self_peer_remove() API returns success, driver releases the
memory accidently as part of I14895b0d3a19b3aaea2299311cc021ea14408f1e

Fix 1st condition by checking if driver unload is in progress. If driver
in unloading then just release the memory and return failure. If driver
is not unloading then just trigger SSR recovery, so FW can recover
silently.

Fix 2nd condition by checking the return status and release the memory
up on failure status code.

CRs-Fixed: 2197657
Change-Id: Ia08dbdac66d8641d22f6a82c29ab1a5b99309214
2018-03-06 23:45:09 -08:00
Krunal Soni
1b5debddcc qcacld-3.0: Release memory when del self sta req fails in WMA layer
The memory leak is detected in API csr_process_del_sta_session_command()
for the memory allocation of del_sta_self_req.

SME sends this message from WMA for further processing.
When WMA_DEL_STA_SELF_REQ is processed, wma_self_peer_remove() will be
called for p2p device. If wma_self_peer_remove() API is failed due to
some reason then memory needs to be freed up which is allocated through
csr_process_del_sta_session_command() API which is missing.

For any failure case, release the message memory allocated by SME either
by releasing directly in WMA when response is not required or by sending
failure response which in turn releases the memory when response is
required.

CRs-Fixed: 2192935
Change-Id: I14895b0d3a19b3aaea2299311cc021ea14408f1e
2018-03-06 23:45:06 -08:00
Rachit Kankane
85b47fca22 qcacld-3.0: Compile out WMI logging feature
Fix to compile cleanly when WMI_INTERFACE_EVENT_LOGGING
feature is disabled.

Change-Id: I7bb4b0304adf829f7f95e95795bcc60ce061d8a2
CRs-Fixed: 2192126
2018-03-06 23:45:01 -08:00
Kiran Kumar Lokere
722dccd92a qcacld-3.0: Add support to allow WEP/TKIP in HE for test
Add support for test configuration to allow WEP/TKIP in HE mode

Change-Id: I19b0620bc3b8e1f7319af5e762e565fcaba11b79
CRs-fixed: 2194497
2018-03-06 23:44:58 -08:00
nshrivas
f229a80aa8 Release 5.2.0.68T
Release 5.2.0.68T

Change-Id: Ia93b3b30b464b4d94e6b0a80b1beb32ddeb57ac3
CRs-Fixed: 774533
2018-03-06 01:51:20 -08:00
Abhishek Singh
821f09c3fc qcacld-3.0: Add logic to negotiate the auth and enc type depending on AP
In testbed sta mode the RSNE enc type and auth type may not match the
AP's enc type and auth type and thus the scan filter is unable to match
and find the AP.

Introduce auth and enc type as "ANY" in scan filter. With the auth
and enc type set as ANY, all the AP's matching the BSSID and SSID
will be filtered and the negotiated auth and enc type will be
dependent on AP's auth and enc type.

Change-Id: Ia7d573b393f7883f4c92188133734795be1781aa
CRs-Fixed: 2197223
2018-03-06 01:51:20 -08:00
Abhishek Singh
f05b0cb604 qcacld-3.0: Add logic to use common API to inform beacon
Duplicate API's are present in HDD and common code to inform the
beacon to kernel. This change removes the duplicate API from HDD
and use common API to inform beacon.

Change-Id: I1916ebd6d3c153f47533cde6a1e2e78ebaae55dc
CRs-Fixed: 2199760
2018-03-06 01:51:15 -08:00
nshrivas
294570b5b4 Release 5.2.0.68S
Release 5.2.0.68S

Change-Id: I63fd67ceacc08bbdf41ddb198ca322bd2800ca1c
CRs-Fixed: 774533
2018-03-05 23:33:27 -08:00
Dustin Brown
0b703ef927 qcacld-3.0: Remove maxWoWFilters and related
Recent changes in Power Management and Offload (PMO) have removed the
need for a configurable maximum number of WoW filters. Remove the
following relevant fields:

 * maxWoWFilters
 * CFG_MAX_WOW_FILTERS_MAX
 * WMA_STA_WOW_DEFAULT_PTRN_MAX
 * max_wow_filters
 * ol_ini_info

Change-Id: I99cc74731d6373258dc65473a8342bda0ab2786b
CRs-Fixed: 2199452
2018-03-05 23:33:27 -08:00
nshrivas
e521f86d33 Release 5.2.0.68R
Release 5.2.0.68R

Change-Id: I31b4e808969439cfb2bf56c4850b8e358ba7c6a5
CRs-Fixed: 774533
2018-03-05 22:33:44 -08:00
Mukul Sharma
ecf8e09fd5 qcacld-3.0: Disable indoor channel on sap start
There are scenario where indoor channel operations
(like  active / passive scan/connect/roam etc)
are not desired / permitted specially in sap case.
Hence add support of disabling indoor channel
on sap start and revert it on sap stop.

Change-Id: Id6e01534532e3076a3e662e6a4f71e8be924165a
CRs-fixed: 2121103
2018-03-05 22:33:43 -08:00
nshrivas
e892451b7e Release 5.2.0.68Q
Release 5.2.0.68Q

Change-Id: I31bb989f3915fcd3e2b227915cf2e26772b89080
CRs-Fixed: 774533
2018-03-05 21:43:47 -08:00
Dustin Brown
b9987afb2c qcacld-3.0: Update firmware filter config (part 1)
In order to conserve firmware memory when various filtering features are
not in use, update the target configuration provided to firmware based
on the intersection of various filtering features and host
configuration.

Part 1
	num_wow_filters = ARP/NS offload enabled ? 2 : 5
	bpf_instruction_size - BPF enabled ? 0 (auto) : 0xffffffff

Part 2 (pending firmware support)
	pkt_filter_num = Packet Filter enabled ? 12 : 0 (disabled)

Change-Id: Ic6624ff04598b53d8321e4864618b12b9702780f
CRs-Fixed: 2196997
2018-03-05 21:43:46 -08:00
nshrivas
186dcee58a Release 5.2.0.68P
Release 5.2.0.68P

Change-Id: Ia1b9ff9a5850c830c208e4bb60b422ebe5b7ba69
CRs-Fixed: 774533
2018-03-05 20:48:52 -08:00
Arif Hussain
80a328aeaa qcacld-3.0: Fix possible buffer overflow in csr_update_fils_params_rso
Fix possible buffer overflow in csr_update_fils_params_rso function.

Change-Id: Icc6e31c094611a74624eed7a4e98ffaf7128f464
CRs-Fixed: 2196080
2018-03-05 20:48:48 -08:00
Arif Hussain
d15902ccd5 qcacld-3.0: Fix possible null pointer de-references in SME and WMA
Add null check to avoid null pointer de-references.

Change-Id: I8a93f269467bbb0dec5610ae158c4f5dc9658a12
CRs-Fixed: 2196080
2018-03-05 20:48:45 -08:00
Dustin Brown
06259e5d96 qcacld-3.0: Add ucfg_pmo_psoc_set_caps()
Provide PMO-specific device capabilities to PMO. This allows PMO to do
intersections between configuration and device capabilities.

Change-Id: If0a199f9be466d16cef900a29b14b73a2a4e52d0
CRs-Fixed: 2197828
2018-03-05 20:48:43 -08:00
Tiger Yu
757f448a04 qcacld-3.0: Remove unmap for packets in the vdev ll_pause queue
The packets in the vdev ll_pause queue hasn't been doing the qdf_nbuf_map,
or they might be mapped by other module like ipa. So do not unmap in the
ol_txrx_vdev_detach to avoid the mis-match operation.

Change-Id: I498c09152be95464bc6343f2a48d63e13d621a82
CRs-Fixed: 2198903
2018-03-05 20:48:39 -08:00
nshrivas
fa6c888f24 Release 5.2.0.68O
Release 5.2.0.68O

Change-Id: I9ec289a57184e0be98704898fac3d5270b3c523a
CRs-Fixed: 774533
2018-03-05 14:19:06 -08:00
Yun Park
bab87d68c1 Revert "qcacld-3.0: Add BUG_ON when uC ready failed"
This reverts commit I87b635bf4644b54d47bee65307d7484c9e328885.
This should be used for uC loading debug purpose only.
If uC is not loaded yet when WLAN initialization, we are expecting
the registered uC ready callback is invoked after uC loaded later.

Change-Id: Ie6f6d116ff7a23a9b4900c60053a8e76948734d9
CRs-Fixed: 2196878
2018-03-05 14:19:05 -08:00
nshrivas
956a457fbe Release 5.2.0.68N
Release 5.2.0.68N

Change-Id: I69a3201431bfd691c8c4ab5f79b24d66d810aace
CRs-Fixed: 774533
2018-03-05 13:22:32 -08:00
Abhinav Kumar
cc86496435 qcacld-3.0: Handle error case in wma_extscan_cached_results_event_handler
Currently, driver calls wma_group_num_bss_to_scan_id API from
wma_extscan_cached_results_event_handler to group bss to scan id
table. Without checking return status of wma_group_num_bss_to_scan_id,
HDD callback is called which can lead to NULL pointer de-reference issue
in wlan_hdd_cfg80211_extscan_cached_results_ind if malloc for
t_scan_id_grp->ap fails in wma_group_num_bss_to_scan_id.

Add check for return status of "wma_group_num_bss_to_scan_id" in
wma_extscan_cached_results_event_handler before invoking HDD callback

Change-Id: I457f39404436c54feb4b555f8101895d3c1ae5d7
CRs-Fixed: 2188297
2018-03-05 13:22:31 -08:00
nshrivas
9709de96f4 Release 5.2.0.68M
Release 5.2.0.68M

Change-Id: I44d2be06b34b4de718c3f1a0d4fa96aa5ebd9670
CRs-Fixed: 774533
2018-03-05 07:16:41 -08:00
Min Liu
22202b703a qcacld-3.0: Peer is not deleted when delete VDEV
Failure can be observed when waiting for peer deletion
before sending WMI command. Peer deletion in VDEV stop
timeout handler also need to be handled in the scheduler
queues.

Change the logic to wait for peer delete completion
before sending message to scheduler queue to delete VDEV.

Change-Id: I78d3070a73c85d212bc33c346b3e60edf3c016f8
CRs-Fixed: 2187430
2018-03-05 07:16:41 -08:00
nshrivas
cda75202eb Release 5.2.0.68L
Release 5.2.0.68L

Change-Id: Ib7e3e22fa65af08ab8e75496356fcae8c7b8d088
CRs-Fixed: 774533
2018-03-05 05:25:21 -08:00
Yeshwanth Sriram Guntuka
d1f8ca7325 qcacld-3.0: Return error if channel list is NULL
Hostapd sends channel list as NULL in do_acs request
when country mode is set to world and hw mode is 11a.
This results in scan to be triggered on all 5g channels
and driver to choose 5g channel as best channel.

Fix is to return error to hostapd if channel list
received is NULL.

Change-Id: I17aacfdbeea9803023a66f54de7b596612ea97c3
CRs-Fixed: 2192858
2018-03-05 05:25:21 -08:00
nshrivas
de08617366 Release 5.2.0.68K
Release 5.2.0.68K

Change-Id: I92e57245d60a0958e7cc5ad88f924639f12bf03c
CRs-Fixed: 774533
2018-03-05 04:28:09 -08:00
Sourav Mohapatra
001cfaf94a qcacld-3.0: Extend scan cleanup API to support netdev level cleanup
In the present scenario the function wlan_cfg80211_cleanup_scan_queue
does the code scan queue cleanup during radio detach, leading to access of
freed vdev netdev.

Extend cfg80211 scan cleanup API to support netdev level cleanup. The
second parameter if NULL cleans up all the queues or only the queue of
the specific net dev given.

Change-Id: I2a6b350fe5102b2a5d772dd9a075003ccf3b684c
CRs-Fixed: 2197309
2018-03-05 04:28:09 -08:00
Abhinav Kumar
c93e5ad6c5 qcacld-3.0: Prioritize connection req frames in pe queue
If multiple auth req comes, it added to the header of message queue
but in between mc thread could be processing some beacon frame. while
processing beacon, SAP gets assoc req and adds it to head of message
queue and will be processed first instead of auth req. After sending
of accoc rsp, mc thread will start to process queued auth req, which
is at the top of message queue which will result in deauthentication.

Reverts commit 360c5d590ec8 ("qcacld-3.0: Prioritize connection req
frames in pe queue")

Change-Id: Iaf511be1160e05cfcd9d60f18be4339587308089
CRs-Fixed: 2192836
2018-03-05 04:28:05 -08:00
nshrivas
f121472f38 Release 5.2.0.68J
Release 5.2.0.68J

Change-Id: I7d04df97b3a745dd7b203ade45e3210a51f24707
CRs-Fixed: 774533
2018-03-02 21:48:37 -08:00
Jeff Johnson
e0847ba99e qcacld-3.0: Add missing blank lines after declarations in HDD
The checkpatch script has identified instances of "Missing a blank
line after declarations" in HDD, so add them.

Change-Id: I289072b26e0c9c1f8392616438e304b018d9ecd2
CRs-Fixed: 2198555
2018-03-02 21:48:36 -08:00
Jeff Johnson
321069fee3 qcacld-3.0: Remove empty hdd_roam_deregister_sta() test
Currently hdd_roam_deregister_sta() tests the STA to see if it is in
the eConnectionState_IbssDisconnected state, but then doesn't actually
do anything if it is true. Since this is obviously an obsolete test
where the action code has been previously removed, now remove the
actual test.

Change-Id: I6a0077088d87f91b8d8f220049de05a19232995b
CRs-Fixed: 2198554
2018-03-02 21:48:33 -08:00
nshrivas
a4f156fe65 Release 5.2.0.68I
Release 5.2.0.68I

Change-Id: Ica672622760343bd23a3a9ac0105b15474c5ff49
CRs-Fixed: 774533
2018-03-02 20:37:21 -08:00
nshrivas
bf1077559d Release 5.2.0.68H
Release 5.2.0.68H

Change-Id: I1a6547154f306ce6765093cfc1bd70690f0628f1
CRs-Fixed: 774533
2018-03-02 18:28:26 -08:00
Rajeev Kumar
d056536a27 qcacld-3.0: Nuke HDD and SME obsolete wow enter and exit APIs
WoW is always enabled on ROME and ADRASTEA platforms and wow
wake up pattern configuration is dynamic based on vdev type.
All wow wake up patterns are configured at the time of vdev
creation. HDD and SME has obsolete wow enter and exit logic
and hence nuke it.

Change-Id: I228ff5b77a7f9dac579448ada4ebee591d5a0c38
CRs-Fixed: 2198644
2018-03-02 18:28:26 -08:00
nshrivas
8af954527b Release 5.2.0.68G
Release 5.2.0.68G

Change-Id: I80b242b234e34449b246f32cb528fd52b86ab815
CRs-Fixed: 774533
2018-03-02 16:52:33 -08:00
Abhishek Singh
1d1d3e3970 qcacld-3.0: Stop the vdev rsp timer as soon as vdev req is removed
In wma_vdev_delete_handler() once vdev req is removed from the
vdev_resp_queue the vdev rsp timer is stopped and freed after
releasing the wake lock and vdev detach callback.

So before vdev rsp timer is stopped it may get expired and
post msg in MC thread. Now once this timer msg is processed it
access the already freed memory.

To fix it stop vdev rsp timer first before releasing the wake
lock and vdev detach callback.

Change-Id: Iface6d1faaa9f801d0da7a70d548eafbd082dc48
CRs-Fixed: 2196338
2018-03-02 16:52:31 -08:00
nshrivas
557e179854 Release 5.2.0.68F
Release 5.2.0.68F

Change-Id: I37712a8d5f50ac131f63dba15c13cf07b8224128
CRs-Fixed: 774533
2018-03-02 16:52:29 -08:00
Jingxiang Ge
b897656a5d qcacld-3.0: Register IPA Tx desc free callback
IPA tx desc free callback function is missed here.
Add it back.

Change-Id: Ic29857816d6d749e1a90219e78f198e7adaaddc0
CRs-Fixed: 2189751
2018-03-02 16:52:27 -08:00
nshrivas
f30a6d960a Release 5.2.0.68E
Release 5.2.0.68E

Change-Id: Id11ca11e5e64c5459b85646745c0aca141c24c15
CRs-Fixed: 774533
2018-03-02 16:51:52 -08:00
Prakash Manjunathappa
e73e3b57db qcacld-3.0: Add INI to control tcp_limit_output_bytes tuning
Current driver posts the high and low Tx TPUT indications to cnss-daemon to
tune  the tcp_limit_output_byte system parameter. Add option to disable it.

Change-Id: Ic65fe0bd762024425cabf2f1f07123211dce5dce
CRs-Fixed: 2197112
2018-03-02 16:33:34 -08:00
snandini
a63fc0c2e3 Release 5.2.0.68D
Release 5.2.0.68D

Change-Id: I959955cfe8e42aa13efe209690507baf1eb3a014
CRs-Fixed: 774533
2018-03-01 09:48:19 -08:00
Himanshu Agarwal
e994970c2a qcacld-3.0: Update band to ICM module
ICM does not support hw_mode=any at present. When hw_mode is
set to any in hostapd.conf, HOST driver choose one band out of
2.4Ghz and 5Ghz based on "acs_freq_band" ini item and update the
ACS and PCL channel list accordingly. But currently driver does
not send updated band to ICM and so ICM still gets BAND_ALL from
HOST driver which is INVALID for ICM module. As a result ICM
algorithm does not run and channel selection fails.

Send Updated band to ICM and also update channel width accordingly
for 2.4Ghz band as it does not support 80/160/80PLUS80 Mhz.

Change-Id: I13593a3c59c204d1ff7677e67d96d039c9456568
CRs-Fixed: 2196247
2018-03-01 17:30:45 +05:30
snandini
e126751324 Release 5.2.0.68C
Release 5.2.0.68C

Change-Id: I9be8f7003d6f7397f38d2ce69d68f020f3c22bae
CRs-Fixed: 774533
2018-02-28 23:35:44 -08:00
gaurank kathpalia
85f8a61cf9 qcacld-3.0: Periodically update host time stamp to firmware for sync
qcacld-2.0 to qcacld-3.0 propagation

Send host timestamp to firmware, so that firmware can print the
logs timestamp in sync with host.

Change-Id: I1d4d223aa1c8e207941ab659f69b72a855e3a604
CRs-Fixed: 2193976
2018-02-28 23:35:44 -08:00
Kiran Kumar Lokere
0923ad8015 qcacld-3.0: Fix capability parsing in service ready event
Check the total supported mac and phy count for capability
parsing in service ready extension event.

Change-Id: Ibde9040e5adf97d53645f714e5e8981dd1a9d22a
CRs-Fixed: 2194602
2018-02-28 23:35:40 -08:00
snandini
b13b0bc130 Release 5.2.0.68B
Release 5.2.0.68B

Change-Id: I81c688eb10d65b55c3706672c04e6aacb94d0112
CRs-Fixed: 774533
2018-02-28 19:16:02 -08:00
snandini
ad48da603d Release 5.2.0.68A
Release 5.2.0.68A

Change-Id: Ic9cf6ae8d39faf08605bf5a3d0f465f9819e2db0
CRs-Fixed: 774533
2018-02-28 18:02:41 -08:00
Jeff Johnson
153f0263ea qcacld-3.0: Fix bad block comment in wlan_hdd_main.h
The checkpatch script has identified an instance of a non-conformant
block comment in wlan_hdd_main.h, so fix it.

Change-Id: Ie76156601021e2b5e503280337b38792217b7dbc
CRs-Fixed: 2197711
2018-02-28 18:02:41 -08:00
snandini
36b274da0f Release 5.2.0.68
Release 5.2.0.68

Change-Id: Ia2eac3e19561d04f907c14dbd43cf4f316210030
CRs-Fixed: 774533
2018-02-28 17:12:30 -08:00
Jeff Johnson
c66d31077c qcacld-3.0: Fix instances of "else after return" in HDD
The checkpatch script has identified instances of "else after return"
that is not conformant with the Linux coding style, so fix them.

Change-Id: Ica4ccb1ef1c865089851e928ddeaa27ea54bcb4a
CRs-Fixed: 2197681
2018-02-28 12:03:12 -08:00
snandini
74f1c2637b Release 5.2.0.67Z
Release 5.2.0.67Z

Change-Id: I0f74687ec7898ee8ead8041041c92b90a1701786
CRs-Fixed: 774533
2018-02-28 08:50:15 -08:00
Jeff Johnson
b8adae49a1 qcacld-3.0: Fix instances of bad indentation in HDD
The checkpatch script has identified multiple instances of non-conformant
indentation in HDD, so fix them.

Change-Id: Icb28911e54324198d50018fcaf6d6662c9dc161c
CRs-Fixed: 2197006
2018-02-28 08:50:14 -08:00
Jeff Johnson
109e79d599 qcacld-3.0: Fix instances of bad brace placement in HDD
The checkpatch script has identified two instances of non-conformant
brace placement in HDD, so fix them.

Change-Id: I0c8bbf2258b24c4876c6a8749633b90873980e95
CRs-Fixed: 2196976
2018-02-28 08:50:11 -08:00
snandini
384d0598ce Release 5.2.0.67Y
Release 5.2.0.67Y

Change-Id: I66b1ecffa6f68923343c606dc334208c48bc87b7
CRs-Fixed: 774533
2018-02-28 05:29:40 -08:00
Nirav Shah
eb017befbd qcacld-3.0: Add support for QCA9379 on x86 platform
Add support for QCA9379 chip on x86 platform for
USB and SDIO attach.

Change-Id: I2de81794cd16521097ffa6956a18b4b0fe981d36
CRs-Fixed: 2196757
2018-02-28 05:29:39 -08:00
snandini
b45a07658c Release 5.2.0.67X
Release 5.2.0.67X

Change-Id: I4500389fe9d00e70899d1db7e1090a547a4eb3f8
CRs-Fixed: 774533
2018-02-28 01:29:51 -08:00
Padma, Santhosh Kumar
9668240906 qcacld-3.0: Add support for GMAC offload
Add check for GMAC offload capability wmi_service_gmac_offload_support.
If firmware supports GMAC offload, trim MMIE when driver receives
PMF frame. Otherwise, driver calculates MIC and trims MMIE.

Also, add support for suiteB auth types during roaming in
e_csr_auth_type_to_rsn_authmode.

Change-Id: Id44f44a41297ca3e462d14905f5986f904a639fd
CRs-Fixed: 2185819
2018-02-28 01:29:51 -08:00
snandini
4081a3a3cc Release 5.2.0.67W
Release 5.2.0.67W

Change-Id: I9f6623638d5bcdd698cc9aa9c67bcac078fc5bea
CRs-Fixed: 774533
2018-02-28 00:31:25 -08:00
Venkata Sharath Chandra Manchala
2996517bbc qcacld-3.0: Enable pktlog for Helium
Add Support to enable pktlog through INI
for helium based devices.

Change-Id: I0acfcf1db8c007c5e2ce81fcb1775fd1b7a50570
CRs-Fixed: 2185210
2018-02-28 00:31:24 -08:00
snandini
392562febc Release 5.2.0.67V
Release 5.2.0.67V

Change-Id: I58e27045b0abc1ddb2ab1fd2d911a4508957ad8a
CRs-Fixed: 774533
2018-02-27 22:17:10 -08:00
Krunal Soni
a5388a25f7 qcacld-3.0: Add vdev restart when changing channel in monitor mode
While changing the channel, driver needs to add vdev restart instead
of channel switch.

Change-Id: I2d5a40aee2108feda5da5e41c6d18aab6c3a30bc
CRs-Fixed: 2182014
2018-02-27 22:17:09 -08:00
Dustin Brown
d424194c5c qcacld-3.0: Include qdf_str.h
The qdf_str APIs have recently been moved from qdf_mem. Reference the
new qdf_str.h header file where appropriate.

Change-Id: I2be5fa3f511fd6d67b4217243f4b3498321e0a9f
CRs-Fixed: 2196120
2018-02-27 22:17:06 -08:00
Varun Reddy Yeturu
bc1bea0956 qcacld-3.0: Send ROAM_STOP if roam synch failed
Send a ROAM_STOP command to firmware with an explicit
reason code for the failure so that it is not blocked
in WMA before sending it to firmware.

Change-Id: I4d7e2e525c145ca0e990dcef85948285e2186c63
CRs-Fixed: 2182671
2018-02-27 22:17:04 -08:00
Zhu Jianmin
439682ddbd qcacld-3.0: Fix LFR2 roam on same channel fail
When LFR2 roaming on same channel, after pre-auth resp received,
A new PE session is created, currentOperChannel is 0 before
lim_fill_ft_session, not same as currentOperChannel of original
session, so lim_is_in_mcc return true, pre-auth auth result is
not sent to SME/CSR for lim_ft_process_pre_auth_result isn't
called in lim_handle_ft_pre_auth_rsp

Change-Id: If8686c7f73c76655f7ab69c23fb97a7bb540732f
CRs-Fixed: 2195749
2018-02-27 22:17:01 -08:00
snandini
5372bf7151 Release 5.2.0.67U
Release 5.2.0.67U

Change-Id: I72d5dc81fada4135599f6dab330cfaf151a07ff0
CRs-Fixed: 774533
2018-02-27 21:17:03 -08:00
Abhishek Singh
3f13a81758 qcacld-3.0: Security enhancement fixes for RSNE frame parser
Adds logic in frame parser to use default RSN IE fields if optional
fields are not present in IE. So if RSN IE doesn't contain AKM,
group and unicast cipher use the default AKM(AKM_IEEE8021X) and
cipher (CCMP). Also adds sanity checks for RSNE in the frame parser.

Change-Id: I120a29c21407f82aab2c6fcdcaf1095518cb71b5
CRs-Fixed: 2195951
2018-02-27 21:17:02 -08:00
snandini
dd25fcdf7f Release 5.2.0.67T
Release 5.2.0.67T

Change-Id: I89aa762e6b3b54b6937a804ab533fefca96f4928
CRs-Fixed: 774533
2018-02-27 20:17:50 -08:00
Krunal Soni
3cf1f1cef6 qcacld-3.0: Initialize save_peer_id_ref_cnt array with default value
One of the arrays defined in data-path's API is not initialized
and this API assumes that subsequent loop will fill up the array to
correct default value. This assumption is wrong.

Intialize the array "save_peer_id_ref_cnt" in API
"ol_txrx_peer_remove_obj_map_entries" to default value "0" to avoid
any issue.

CRs-Fixed: 2196084
Change-Id: If0080708662fc44e6583823717798a9f505ec1d0
2018-02-27 20:17:49 -08:00
snandini
279ab101bc Release 5.2.0.67S
Release 5.2.0.67S

Change-Id: Id1051472205343030ac1fc3a972b4205851961ee
CRs-Fixed: 774533
2018-02-27 15:07:49 -08:00
Ashish Kumar Dhanotiya
aa0ca60f16 qcacld-3.0: Reject invalid MAC address during dynamic MAC change
Currently when the MAC address is changed dynamically, invalid MAC
(Broadcast, Multicast and 00:00:00:00:00:00) are getting accepted
and interface is getting up on these invalid addresses because
of this device is trying to connect to AP with the configured
invalid address.

To address this issue reject all invalid MAC addresses
when MAC is dynamically getting configured.

Change-Id: If2530b213b5ffc2ddf0bc728138e1f3200f33286
CRs-Fixed: 2190468
2018-02-27 15:07:49 -08:00
snandini
6361a05532 Release 5.2.0.67R
Release 5.2.0.67R

Change-Id: Ie458f630cb8821fda97b3eceb18a226f9fa5ada3
CRs-Fixed: 774533
2018-02-27 14:07:03 -08:00
Vignesh Viswanathan
200f5c19b0 qcacld-3.0: Skip starting SAP after channel change if stop BSS in progress
When stop_bss from HDD is received when a SAP channel change request
is currently in progress and channel change response is not yet
received from the FW, the stop_bss would clear the SAP session and
when channel change response is received, we try to start BSS again.
The CSR roam state is also set to JOINING in this case.

As part of start BSS, we queue set key command to SME active command
list. Since the session has been cleared, eWNI_SME_SETCONTEXT_RSP
sent to lim would not be processed in CSR state JOINING leading to set
key command stuck in the active command list.

Do not restart BSS after channel change response if stop BSS is in
progress. Also handle eWNI_SME_SETCONTEXT_RSP and clear the command
queue in CSR Joining state.

Change-Id: I8dbab054746d26cc92fc2274d35ce76a694035fe
CRs-Fixed: 2193505
2018-02-27 14:07:02 -08:00
snandini
38e732a272 Release 5.2.0.67Q
Release 5.2.0.67Q

Change-Id: I839bf2ab343307c060f15e0bf8f7d2b53de70b3a
CRs-Fixed: 774533
2018-02-27 01:57:26 -08:00
jiad
af1b76efa5 qcacld-3.0: skip dma unmap for IPA owned skb
In MCC tx path, skb is owned by IPA driver, where IPA driver provides
wlan driver directly DMA mapped address. Doing dma unmap of the skb
will lead to skb dma map check failure.

Fix is to skip dma unmap for IPA owned skb and let IPA driver handle
dma unmap.

Change-Id: Ib38ca949ba915785e460c05172b70088a3564b1c
CRs-Fixed: 2189889
2018-02-27 01:57:25 -08:00
snandini
cc0e11b6ca Release 5.2.0.67P
Release 5.2.0.67P

Change-Id: I5ea4b7e6431e61794c2536be945d6021bab7b7cc
CRs-Fixed: 774533
2018-02-26 21:44:43 -08:00
Abhishek Singh
6378103e12 qcacld-3.0: Add logic to ignore PMF check for STA test mode
In testbed STA mode the RSNE may not match with APUT and thus
driver fails to filter AP from scan cache as PMF capability
mismatch.

With this change driver will ignore PMF capability check and
proceed with connection to send auth and assoc to APUT.

Change-Id: I1bf5947fb08574941eaf1845ec1e36ee9b030dd0
CRs-Fixed: 2195354
2018-02-26 21:44:43 -08:00
snandini
7a0d8730ae Release 5.2.0.67O
Release 5.2.0.67O

Change-Id: I980e43d4e25f03d249bb3f21a924ca9a34cb6c87
CRs-Fixed: 774533
2018-02-26 12:08:27 -08:00
snandini
b7a2d775a6 Release 5.2.0.67N
Release 5.2.0.67N

Change-Id: I8f6c801ecb4dd00828dfb8cd1f7bb9b6e4ec60b2
CRs-Fixed: 774533
2018-02-26 06:34:30 -08:00
Yeshwanth Sriram Guntuka
469f957cd3 qcacld-3.0: Set hw mode based on channel_select_logic_conc ini
Set hw mode to DBS or single MAC for STA+STA and STA+P2P
concurrencies based on channel_select_logic_conc ini.

Change-Id: I46ba4d5cd8f5cda71d0c00be2b612bc851eb5ba4
CRs-Fixed: 2185554
2018-02-26 06:34:27 -08:00
Yeshwanth Sriram Guntuka
db7995db23 qcacld-3.0: Add ini support for channel selection logic
Add ini to select DBS or inter-band MCC channel selection logic
for STA+STA and STA+P2P connections.

Change-Id: I7cfde9592ec210b0a8c812171d2bc6f005e17fb2
CRs-Fixed: 2185552
2018-02-26 06:34:22 -08:00
Himanshu Agarwal
1b3be70ff7 qcacld-3.0: Free ACS channel list before allocating new list
In __wlan_hdd_cfg80211_do_acs(), driver allocates memory for
ACS channel list without checking if there is already some
memory allocated for channel list or not. When SSR is triggered
before ACS completion, ACS list does not get freed and after
driver reinit, when a new do ACS comes, it allocates a new memory
without deallocating the older memory. This causes memory leak.

Free ACS channel list if already allocated before allocate a new
list.

Change-Id: Ic001c3daac518e97644da00cb82ea1d3fde4b539
CRs-Fixed: 2191839
2018-02-26 06:34:16 -08:00
snandini
db40093ed3 Release 5.2.0.67M
Release 5.2.0.67M

Change-Id: I6151d0226d7cbed85e41d71eced6cf904390c196
CRs-Fixed: 774533
2018-02-26 04:07:11 -08:00
Sravan Kumar Kairam
c1ae71c4cd qcacld-3.0: Add ARP debug stats
Change to collect arp packet stats along with
existing hdd stats to debug arp packet related
issues.

Change-Id: Idce70799bd3698dc8a8ecd8cfc8ef7d9bf1f5764
CRs-Fixed: 2019787
2018-02-26 04:07:10 -08:00
snandini
1596296121 Release 5.2.0.67L
Release 5.2.0.67L

Change-Id: Ic2a7c5c6003fcc0c3b83e00cd81753cae86954bf
CRs-Fixed: 774533
2018-02-26 02:54:50 -08:00
Himanshu Agarwal
91c5c0f7d7 qcacld-3.0: Avoid 2.4Ghz channel in 40Mhz for SAP start
When the channel list provided from hostapd contains both
2.4Ghz and 5Ghz channels and channel width is 40Mhz, scan
happens on all the 2.4Ghz  and 5Ghz channels and ACS algo
runs on all the channels to find the best channel for
starting SAP in 40Mhz. If a 2.4Ghz is selected, an OBSS
scan happens on all the 2.4Ghz channels to check if there
is any legacy BSS present on any overlapping channel. If
any BSS is found, channel width fallbacks to 20Mhz and
SAP gets started in 20Mhz bw instead of 40Mhz. This is
generally the case with 2.4Ghz whereas there is no such
issue in 5Ghz channels.

Avoid 2.4Ghz channels for starting SAP in 40Mhz bw by
assigning max weight to all the 2.4Ghz channels if 5Ghz
channels are also present in the channel list provided
from hostapd.

Change-Id: I079d20b912282c9db5c9b51b1ed4b85a4aa9c5df
CRs-Fixed: 2186658
2018-02-26 02:54:49 -08:00
snandini
348bf81f54 Release 5.2.0.67K
Release 5.2.0.67K

Change-Id: I83a1301cf90247a8b6fa38b92a33889d04879086
CRs-Fixed: 774533
2018-02-26 00:24:14 -08:00
Ashish Kumar Dhanotiya
4be2a7b2a4 qcacld-3.0: Validate update avoid frequency channel list
qcacld-2.0 to qcacld-3.0 propagation.

Validate the avoid frequency channel list of
QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY command and update the
driver's unsafe channel list with the channels received in the command.

Change-Id: I1a10e668bf6fe6dbb22f7f2f8aef929fc6e7fc65
CRs-Fixed: 2187477
2018-02-26 00:24:11 -08:00
snandini
d04cc3a105 Release 5.2.0.67J
Release 5.2.0.67J

Change-Id: I02a87f5b35e2110f54ff305f0f465fd0e454391a
CRs-Fixed: 774533
2018-02-25 21:08:43 -08:00
snandini
a73a51aca2 Release 5.2.0.67I
Release 5.2.0.67I

Change-Id: I16ca4caf365b1ae5d95c6b945d044fda7cecf7d6
CRs-Fixed: 774533
2018-02-24 04:11:17 -08:00
Kiran Kumar Lokere
5cc2f0da1f qcacld-3.0: Add support to configure HE fragmentaion
Add support to configure HE fragmentation support using NL
command.

Change-Id: I49b81df96a9c8199a1cc5994762aeba0ed9676b0
CRs-Fixed: 2166782
2018-02-24 04:11:17 -08:00
snandini
1d94aca1d9 Release 5.2.0.67H
Release 5.2.0.67H

Change-Id: I457529341c6091adc922fb06cd9a1e4c071084cb
CRs-Fixed: 774533
2018-02-23 20:01:10 -08:00
Dustin Brown
7bd76330b1 qcacld-3.0: Disable Packet Filter by default
The Android Packet Filter (APF) is the preferred method for filtering
packets, but the legacy Packet Filter may also be used. In order to
encourage the use of APF over Packet Filter, disable Packet Filter by
default. Customers may still enable Packet Filter via setting
gDisablePacketFilter=0 via ini configuration.

Change-Id: I581a4001167571efbc7c1c1738c5585e4bde0611
CRs-Fixed: 2195111
2018-02-23 13:26:05 -08:00
snandini
4d6d6425a6 Release 5.2.0.67G
Release 5.2.0.67G

Change-Id: I905b803bf77015551905e11fe9e74205c76cceb6
CRs-Fixed: 774533
2018-02-22 23:30:49 -08:00
Tushnim Bhattacharyya
087bff3a13 qcacld-3.0: Trim ACS channel list based on the concurrent connections
If force SCC is enabled and there is a STA connection, trim the
ACS channel list on the band on which STA connection is present.

Change-Id: Ibd580a7afdcdfc5fb4398ada547565e229d59c70
CRs-Fixed: 2191792
2018-02-22 23:30:48 -08:00
snandini
428897d9a5 Release 5.2.0.67F
Release 5.2.0.67F

Change-Id: I2d96905bfc53819ea0d5a1df7074756ad83be543
CRs-Fixed: 774533
2018-02-22 17:46:20 -08:00
Rajeev Kumar
69ddd852e5 qcacld-3.0: Free nested set link state response msg buffer in PE
PE is not freeing the second level of allocated memory during MC
thread message queue flush logic and hence leaking the memory.
Free second level of allocated memory in pe_free_message such
that message posted from WMA is still freed even if MC thread is
shutdown during driver unload/SSR.

Change-Id: I6a88d3b331c29496bc7c1d9e451c97206a2b85cf
CRs-Fixed: 2192884
2018-02-22 17:46:20 -08:00
snandini
e87a2f2ae5 Release 5.2.0.67E
Release 5.2.0.67E

Change-Id: If570eb39936d37b031455ad4e0ff96f0e7c29b39
CRs-Fixed: 774533
2018-02-22 14:05:23 -08:00
Hanumanth Reddy Pothula
3862ca9efa qcacld-3.0: Flush scan results on interface down
After successful connection, if interface down(STA) happens on DUT
and if AP changes data rates before interface up happens, there
is a possibility of STA to send packets at older data rates, because
of holding older scan results in SME scan cache. This results in using
stale scan result even after wifi turn off and on. If stale scan result
is used and if AP has updated some params like rates DUT will not be
using those supported rates for tx which is an issue.

To mitigate this issue, flush scan results on STA interface down.
Also, make sure there are no other STA interfaces before flushing
scan results.

Change-Id: I3505c128276fa8e5e05ea5d9110eb75275a746e9
CRs-Fixed: 2171523
2018-02-22 14:05:22 -08:00
snandini
5241871c2f Release 5.2.0.67D
Release 5.2.0.67D

Change-Id: I9b4ec401b24d2f448c03167e738f11e8a647f12c
CRs-Fixed: 774533
2018-02-22 12:38:41 -08:00
Yun Park
f1684eced9 qcacld-3.0: Add BUG_ON when uC ready failed
When uC ready fails while WDI init, get a dump for uC debugging.

Change-Id: I87b635bf4644b54d47bee65307d7484c9e328885
CRs-Fixed: 2194383
2018-02-22 12:38:40 -08:00
snandini
02421a0f38 Release 5.2.0.67C
Release 5.2.0.67C

Change-Id: I2d38380de19afaddc8a30adc0e7c1f4e3375ebea
CRs-Fixed: 774533
2018-02-22 07:25:52 -08:00
Abhishek Singh
221cf99fdf qcacld-3.0: Cleanup unused scan code
Cleanup the unused legacy scan code.

Change-Id: Ia664f815759142e7f4ad8e648a469c63ddd003f5
CRs-Fixed: 2193917
2018-02-22 07:25:52 -08:00
snandini
0781b178fb Release 5.2.0.67B
Release 5.2.0.67B

Change-Id: I900548626a55931a34620fcf7746aca1e524a368
CRs-Fixed: 774533
2018-02-22 06:01:23 -08:00
Abhishek Singh
edb7360d92 qcacld-3.0: Match all encryption type in case of testbed STA
If force rsne is set i.e testbed STA mode, the auth type and
encryption type set in RSNE provided, may not match with the AP.
In this case driver will not find the AP in filtered scan result
using the encryption and auth type provided in RSNE.

Thus no Assoc req is sent to AP and the test case fails.

As part of the fix set all authtype and RSN encryptions in filter
so that driver is able to find the AP and send Assoc request.

Change-Id: If99df221b10c5276f902df2f0a52b87e4df1be2c
CRs-Fixed: 2192174
2018-02-22 06:01:22 -08:00
snandini
eaf915d1e0 Release 5.2.0.67A
Release 5.2.0.67A

Change-Id: I655925546f715a9097f148b9c1d070feb2fe604e
CRs-Fixed: 774533
2018-02-22 04:04:01 -08:00
Ashish Kumar Dhanotiya
191d164636 qcacld-3.0: Add ini parameter for chain selection optimization
Add ini support to Enable/Disable chain selection optimization
for one chain dtim.

Change-Id: I95999a4204f2d978abc9951688332400b9670f0e
CRs-Fixed: 2189150
2018-02-22 04:04:00 -08:00
snandini
659acb30da Release 5.2.0.67
Release 5.2.0.67

Change-Id: Iaf45ce1cea97b087c61c6a8a21ec2e9cf7032008
CRs-Fixed: 774533
2018-02-22 02:15:09 -08:00
Abhishek Singh
f723e3d31a qcacld-3.0: Cleanup the legacy scan code
Cleanup the unused legacy scan code.

Change-Id: Ia45cf0310c506d3cf6b897b31f9d28b4fac3197c
CRs-Fixed: 2193917
2018-02-22 09:57:12 +05:30
snandini
658b2c74e4 Release 5.2.0.66Z
Release 5.2.0.66Z

Change-Id: Id8707e1e3313485ad96feb07a8c12e589c276201
CRs-Fixed: 774533
2018-02-21 19:27:40 -08:00
Kiran Kumar Lokere
a934561748 qcacld-3.0: Add support to configure BA operating mode
Add support to configure BA operating mode using nl command

Change-Id: Ibc566d7e090b5f54636b8029e0e8eef9d26c9ad8
CRs-Fixed: 2181889
2018-02-21 19:27:40 -08:00
snandini
e98e97774b Release 5.2.0.66Y
Release 5.2.0.66Y

Change-Id: I50e32e73e377cf83658e74b5971dc24c592319b4
CRs-Fixed: 774533
2018-02-21 17:12:23 -08:00
Kabilan Kannan
b867c313fe qcacld-3.0: Fix TDLS memory leak in SSR and driver unload
In SSR or driver unloading case, directly exit may cause obj
leak. Free the objects in those cases, regardless of
sme_close_session status

Change-Id: Iaf0500aca23917f84c37848cd3abade66b7d7456
CRs-Fixed: 2187579
2018-02-21 17:12:22 -08:00
snandini
567e109c81 Release 5.2.0.66X
Release 5.2.0.66X

Change-Id: I9ded909060f9b327a14f334f0471d9cc2aa661a8
CRs-Fixed: 774533
2018-02-21 15:24:24 -08:00
Yeshwanth Sriram Guntuka
273889e7cc qcacld-3.0: Update bss count based on channel offset only for same band
In sap_update_rssi_bsscount, bss count for channels is
incremented based on offset only and does not consider
if channel on which scan result is received and the
offset channel belong to same band. This could result
in incorrect increment of bss count for some channels
when channels from both bands are present.

Fix is to increment bss count based on channel offset
only if both channels belong to same band and also
choose channel with lower bss count among the channels
having least weight.

Change-Id: Icee978fc40047782c79fe36cba29e3feed3c90aa
CRs-Fixed: 2191324
2018-02-21 15:24:23 -08:00
Vignesh Viswanathan
a842b94f04 qcacld-3.0: Free LIM Deauth/Disassoc requests during lim cleanup
If Deauth/Disassoc timer is currently running when lim_cleanup
happens due to SSR, the memory allocated for Disassoc/Deauth Req in
mac context is not freed leading to memory leak.

Free Deauth/Disassoc Requests stored in mac context in lim_cleanup
Also check for existing Deauth/Disassoc Request pointers stored in
mac context and free it before assigning it to point to the
current request.

Change-Id: Id7e221bd9d5061ecaa9b73a4fe1dc0f465f68aa9
CRs-Fixed: 2191131
2018-02-21 15:24:21 -08:00
Vignesh Viswanathan
08ad8a0a34 qcacld-3.0: Add vdev_id sanity check in wma_vdev_stop_resp_handler
In function wma_vdev_stop_resp_handler, resp_event->vdev_id is
received from the FW and is used to access the interfaces array in
wma_handle. This could lead to OOB read/write if the vdev_id
received from the FW is greater than or equal to max_bssid.

Add check to return failure if resp_event->vdev_id is greater than
or equal to max_bssid in wma_vdev_stop_resp_handler

Change-Id: I1af5312e6c45db3b9ba03fbf45de3d3c2a7fab20
CRs-Fixed: 2185477
2018-02-21 15:24:18 -08:00
snandini
e2e29b170f Release 5.2.0.66W
Release 5.2.0.66W

Change-Id: I629bf73393d560579a9dff5d8265f40a53d32938
CRs-Fixed: 774533
2018-02-20 21:47:55 -08:00
Arunk Khandavalli
2859fa1f8b qcacld-3.0: Add fw down check to validate context
Is firmware down check is added explicity in some api's and insome
northbound interfaces it is not added resulting in waiting for
firmware response even when the firmware is down.

Move firmware down check to validate context umbrella where
other driver states are validated.

Change-Id: I42a520f8a573825fde55a40dd03bb942f8a34b9c
CRs-Fixed: 2188938
2018-02-20 21:47:55 -08:00
snandini
64a17137ca Release 5.2.0.66V
Release 5.2.0.66V

Change-Id: I519db774a9b61c46ef85f3df9d373573ad2b5355
CRs-Fixed: 774533
2018-02-20 17:54:57 -08:00
Sachin Ahuja
16904db4ef qcacld-3.0: Avoid reinitialization of wlan_start_comp event
Currently in case of static driver, wififtmd which writes into the
bootwlan and wifi-service which writes into the state_ctrl_param
executes in parallel. The handler of boot_wlan and state_ctrl_param
in driver intialize this wlan_start_comp variable and wait for its
completion. If one handler is already waiting on this event and other
handler reinitalize the event then it leads to the instability.

To mitigate this issue
1) set the driver loaded state to true and then complete the
wlan_start_comp event.
2) create the state_ctrl_param fs only once the boot_wlan handler
wait is completed for probe.

CRs-Fixed: 2158126
Change-Id: Ia51811a0dd2c5b52f7eee781c4d4620174de3649
2018-02-20 17:54:57 -08:00
snandini
b4ad53d198 Release 5.2.0.66U
Release 5.2.0.66U

Change-Id: I5a3a7af592f66d2a61457a331f3ba6508941b7fb
CRs-Fixed: 774533
2018-02-20 17:05:46 -08:00
Abhinav Kumar
9449269c04 qcacld-3.0: Fix to pass appropriate buffer length to unpack RSN IE
In lim_set_rs_nie_wp_aiefrom_sme_start_bss_req_message, length passed
to unpack RSN IE is total length of WPA and RSN IE. So if only WPA IE
is present in assoc request, the RSN IE parser will try to validate the
buffer beyond the RSN IE and might fail as the buffer belongs to WPA IE.

Pass appropriate length to unpack RSN IE.

Change-Id: Ie679e67061e7ac622e8e76b285a32135a60ca6e8
CRs-Fixed: 2189926
2018-02-20 11:12:38 +05:30
snandini
cf6099f206 Release 5.2.0.66T
Release 5.2.0.66T

Change-Id: I1d77c390e3893495c23f8360de33700e0b48229e
CRs-Fixed: 774533
2018-02-16 19:46:25 -08:00
Naveen Rawat
368858c54f qcacld-3.0: Switch order of phymode and ch_width
As part of csa or opmode IE handling program phymode param after
ch_width since firmware expects channel width to be programmed
before phymode.

Change-Id: I46e3a5e1ce94fa53e27f821e70c29e209e591865
CRs-Fixed: 2186030
2018-02-16 19:46:25 -08:00
snandini
e9ff3fc419 Release 5.2.0.66S
Release 5.2.0.66S

Change-Id: I667afd67466b0e4280d7602bb1178c88f822e42b
CRs-Fixed: 774533
2018-02-16 18:58:35 -08:00
Arif Hussain
55aaaad921 qcacld-3.0: Set copy_to_user flag on ftm rsp command
If command type is FTM_IOCTL_UNIFIED_UTF_RSP set copy_to_user
flag to return proper data to userspace.

Change-Id: I5f4a1e147f3d1dc162001ceb69fa6823b3158787
CRs-Fixed: 2191046
2018-02-16 18:58:34 -08:00
snandini
1dd309b9b8 Release 5.2.0.66R
Release 5.2.0.66R

Change-Id: I2d60da2db850f27e41b7a33209337c38ae53ffb0
CRs-Fixed: 774533
2018-02-15 20:59:51 -08:00
Rajeev Kumar
1117fcf2af qcacld-3.0: Fix memory leak in HDD API iw_setnone_getint
HDD IOCTL __iw_setnone_getint is not releasing SME config memory
in error case properly and hence leading to memory leak. Fix this
SME config memory leak by properly freeing it before returning from
__iw_setnone_getint.

Change-Id: Ie50259a639edb2cfa63cd3bbe7cac8bb8ebb7654
CRs-Fixed: 2191041
2018-02-15 20:59:50 -08:00
snandini
56e3c3c7e7 Release 5.2.0.66Q
Release 5.2.0.66Q

Change-Id: I85ceb49e8aff16bec3b4e6078bede83a292c3ec1
CRs-Fixed: 774533
2018-02-15 19:35:00 -08:00
Varun Reddy Yeturu
85090c94e9 qcacld-3.0: Cancel scans during roaming
Upon receiving a ROAM_START from the firmware,
cancel the current scans which is similar to
initial connection which will avoid unnecessary
frames to the host during the connection process.

Change-Id: I0c9a4dd7cd4d58e0583cc44b5e33e88728eb70bb
CRs-Fixed: 2174921
2018-02-15 19:35:00 -08:00
snandini
df63a809a1 Release 5.2.0.66P
Release 5.2.0.66P

Change-Id: I8e25194a67393e3216e3149d273fe91fbd2e0911
CRs-Fixed: 774533
2018-02-15 18:45:45 -08:00
Naveen Rawat
2eb4c8309f qcacld-3.0: Fix suBFormee/suBFormer in handling assoc request
In handling assoc request make sure to use VHT IE or vendor VHT IE
appropriately for suBFormee/suBFormer calculation.

Change-Id: I3934a0c7229a8a400d1aa54fe3bf0bc3513d4d70
CRs-Fixed: 2159206
2018-02-15 14:38:59 -08:00
snandini
819e218bf2 Release 5.2.0.66O
Release 5.2.0.66O

Change-Id: I523c94c5fba1aab6aad54d5501fe2a085f7c2d7d
CRs-Fixed: 774533
2018-02-15 14:10:45 -08:00
Abhinav Kumar
5eda62d43c qcacld-3.0: Fix to avoid race condition during acs scan
Currently, driver allows multiple acs scan requests at a time. Due to this
race conditions can occur and causes "use after free" issue for variable
channelList. To avoid race condition, driver should allow only one acs scan
request at a time.

Add a new atomic variable to make sure that if one acs scan request
is in process, the driver should reject all further acs scan requests.

Change-Id: I7aa2f4df0dd4c6ca8ff791fe462d142fc7b3e691
CRs-Fixed: 2176354
2018-02-15 14:10:44 -08:00
snandini
0d86b5c428 Release 5.2.0.66N
Release 5.2.0.66N

Change-Id: Iccc9c63b8b19d2142a998324dfdad60418908b1d
CRs-Fixed: 774533
2018-02-15 10:15:11 -08:00
Hanumanth Reddy Pothula
855f7ef72f qcacld-3.0: Add txrx_get_pldev API to get packetlog object
Packetlog initialization is failing as txrx_get_pldev API is missing,
which returns paketlog object from the given pdev.

Add txrx_get_pldev API to get packet log object for the given pdev.

Change-Id: I2219a5c0964e76637ff8dbef92661b98cd22fb28
CRs-Fixed: 2189211
2018-02-15 10:15:11 -08:00
snandini
6de76520a6 Release 5.2.0.66M
Release 5.2.0.66M

Change-Id: I307d047aaf90fa89efc4d49a0c66408fc1c96603
CRs-Fixed: 774533
2018-02-15 09:20:28 -08:00
Yun Park
84c0cebe87 qcacld-3.0: Add IPA WDI Unified API support
Support for WDI2 in the Unified IPA WDI APIs.

Change-Id: Ife42a6a96ce80070de51f994e29ded252b3dd980
CRs-Fixed: 2183498
2018-02-15 09:20:27 -08:00
snandini
1b4e3017e8 Release 5.2.0.66L
Release 5.2.0.66L

Change-Id: I8aa68677a42ee82e539ff6ee5197e3497eee9bb4
CRs-Fixed: 774533
2018-02-15 01:49:23 -08:00
Vignesh Viswanathan
0a569299e8 qcacld-3.0: Check for SME state in hdd_get_sta_connection_in_progress
Currently in hdd_get_sta_connection_in_progress, conn_info.uIsAuthenticated
is used to check if the STA connection is in progress. However, this might
not reflect the actual state and might still lead to the deadlock scenario
fixed in I23ad1fc96882abeaae2d1b051659ea6d24b07428.

Add new API to check for SME state for key exchange in progress and
use it in hdd_get_sta_connection_in_progress.

Change-Id: I7d6199ed8c81a113c4e3f30538d74fb675e730ff
CRs-Fixed: 2189814
2018-02-15 01:49:23 -08:00
snandini
54cdde0c73 Release 5.2.0.66K
Release 5.2.0.66K

Change-Id: Ideaca7a6e6d59def4e7210fa33f0f6de590c3bda
CRs-Fixed: 774533
2018-02-14 21:12:15 -08:00
Will Huang
cf9ed9cca7 qcacld-3.0: Fix Pre-auth pe session id error
lim_preauth_scan_event_handler using sme session id to find pe session,
it may find pe session new create for roaming bss, it will cause
pre-auth roaming command can't dequeue.

Change-Id: I81be20318300ac0e312aa9bcff1a43a47e9a38f7
CRs-Fixed: 2189778
2018-02-14 21:12:15 -08:00
snandini
996b902d8e Release 5.2.0.66J
Release 5.2.0.66J

Change-Id: Ie4416a7517df24544fa53e76f0887471c36a49f6
CRs-Fixed: 774533
2018-02-14 19:43:32 -08:00
Tushnim Bhattacharyya
356d46e59e qcacld-3.0: Fix a race between SMM hw mode request and connection request
Fix the following race condition,
1. A connection request to driver which requires DBS
2. DBS gets granted, but connection fails, so opportunistic timer
   starts off
3. New connection request gets queued in SME & opportunistic timer fires
   and SMM HW mode request gets queued behind the connection request
4. Connection is succesful which needs DBS
5. SMM hw mode request gets sent to FW

Change-Id: I0456eba8165015b58b341df934fbfad5fb6eee86
CRs-Fixed: 2186292
2018-02-14 19:43:31 -08:00
snandini
8e2ad06c76 Release 5.2.0.66I
Release 5.2.0.66I

Change-Id: Iba575ce27dcf4fb8c9af646e028594abb50c5810
CRs-Fixed: 774533
2018-02-14 13:02:13 -08:00
Krunal Soni
1fd496d4f2 qcacld-3.0: Send certain DTIM params when LI offload is enabled
It is decided to centralize the logic of programming LI based on
modulated/dynamic DTIM in FW to address the concerns with LFR3.0 in WoW
mode. In order to make it work, following steps need to be performed.

1) If listen interval offload bit is enabled in service ready extension
   then,

   a) Driver needs to send "gEnableModulatedDTIM", "gMaxLIModulatedDTIM"
      and "gEnableDynamicDTIM" params' value to FW via VDEV PARAM up on
      each successful association.

   b) Driver should not program LI during suspend()/resume()

2) If listen interval offload bit is disabled in service ready extension
   then don't trigger above changes.

Change-Id: I6f94c95bd83e5846d7290d5dc752b14da5951a76
CRs-Fixed: 2187597
2018-02-14 13:02:13 -08:00
snandini
a4f9af4ba5 Release 5.2.0.66H
Release 5.2.0.66H

Change-Id: If0a86fa095964c1676bd329389e3bbe4bdf81b53
CRs-Fixed: 774533
2018-02-14 09:33:16 -08:00
Vignesh Viswanathan
0fcb4d3b6b qcacld-3.0: Reduce minimum value for 11k offload cache timeout
Reduce the minimum value for the ini nr_offload_cache_timeout to
5 seconds.

This is done to give the user a shorter cache_timeout to trigger
neighbor report frames more frequently.

Change-Id: Ica5359b9e826dad382868de991dcbf204c10a096
CRs-Fixed: 2189034
2018-02-14 09:33:15 -08:00
snandini
0a1cafa0f2 Release 5.2.0.66G
Release 5.2.0.66G

Change-Id: I7e030e10e10536ba94d0ceb17098b33a46c629c8
CRs-Fixed: 774533
2018-02-14 07:49:18 -08:00
Abhinav Kumar
f9989586a6 qcacld-3.0: Scan cleanup in lim and csr
Cleanup the unused scan legacy code in lim and csr

Change-Id: Ibea328196a9453ebaae887aa4068e78c47296762
CRs-Fixed: 2184924
2018-02-14 04:02:17 -08:00
snandini
07a33b1fb1 Release 5.2.0.66F
Release 5.2.0.66F

Change-Id: I150e62eb62e9d4ef96b8310d2a5c4221586ed005
CRs-Fixed: 774533
2018-02-14 03:43:28 -08:00
Will Huang
80ac13b298 qcacld-3.0: Fix size error in htt_tx_ipa_uc_detach
Size allocate with sizeof(target_paddr_t) which is following DMA
device, but free with sizeof(qdf_nbuf_t) which is a pointer following
system. Maybe not same size on some platform.

Fix it by using same type when allocate/free.

Change-Id: Iadcb68b05ca5798f38c4341323b9fd1e32f5d693
CRs-Fixed: 2189671
2018-02-14 03:43:28 -08:00
snandini
9a32e9bf41 Release 5.2.0.66E
Release 5.2.0.66E

Change-Id: I1c83a9e9b8d7dc904cc5f454c67bf32874e64e6c
CRs-Fixed: 774533
2018-02-13 18:28:45 -08:00
Krunal Soni
707eb78287 qcacld-3.0: Add support to enable/disable WMM using nl cmd
Add support to enable/disable WMM feature using nl command

Change-Id: I71f5afd0f922854f8756a0428cbb290e641d5021
CRs-Fixed: 2187621
2018-02-13 18:28:44 -08:00
Kiran Kumar Lokere
f7662e5fed qcacld-3.0: Validate opmode update req before sending to FW
Check the current vdev supported bandwidth values agianst peer
opemode update value and if the peer opmode value is greater than
current supported value then do not send the opmode update request
to FW.

Change-Id: I8f360d769b5aafb90061a6a9d18f1f8062e3534e
CRs-Fixed: 2174050
2018-02-13 18:28:42 -08:00
snandini
bd64a24c7a Release 5.2.0.66D
Release 5.2.0.66D

Change-Id: Ie96bf5b060680149e248edc8956f8a1ba02d00b2
CRs-Fixed: 774533
2018-02-13 17:24:05 -08:00
Kiran Kumar Lokere
13dedacbdc qcacld-3.0: Update HE STBC cap and support to configure it
Update the HE STBC capabilty per latest spec and add support
to configure it using INI configuration and ioctl.

Change-Id: I4ecc7b600671c132c1f3968a10fb652a4311f484
CRs-Fixed: 2181114
2018-02-13 17:24:04 -08:00