Commit Graph

5443 Commits

Author SHA1 Message Date
CNSS_WLAN Service
1988e52ac7 Merge "qcacld-3.0: Remove obsolete FTM state data structures" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:45:50 -07:00
snandini
31388137a9 Release 5.2.0.33Y
Release 5.2.0.33Y

Change-Id: Ie4713a18743372182e1ad358b4d89814c775000f
CRs-Fixed: 774533
2017-07-08 13:41:36 -07:00
Deepak Dhamdhere
612392c937 qcacld-3.0: Add .ini configuration for max number of AMSDU
qcacld-2.0 to qcacld-3.0 propagation

Host driver can send number of max AMSDUs in transmit frames.
Added a call to process_wma_set_command() similar to CLI
command processing for GEN_VDEV_PARAM_AMSDU during device
initialization.
Changed name of the field from isAmsduSupportInAMPDU to max_amsdu_num
in several places. Existing SME and LIM code passes this parameter
to WMA, but it is not used there. It may be useful if AMSDU setting
is changed to per-vdev basis in future.

WCNSS_qcom_cfg.ini changes:
Removed - "gAmsduSupportInAMPDU"
Added - Name = "gMaxAmsduNum", Min = 0, Max = 3, Default = 1

Actual function call to ol_txrx_aggr_cfg() send the parameters to
firmware is commented out because it is not implemented in firmware.

Change-Id: I2dfdd8c8c4a8807596ff28eee192ef66ac425653
CRs-Fixed: 871686
2017-07-08 13:41:35 -07:00
snandini
eadb2daa88 Release 5.2.0.33X
Release 5.2.0.33X

Change-Id: I1e3cf186158a4234a110e9767f4fbececd2e33b4
CRs-Fixed: 774533
2017-07-07 23:41:35 -07:00
Amar Singhal
5eb9acb9bd qcacld-3.0: Add 11d scan event to wow statistics
Add 11d scan wakeup event to wow statistics and wow wakeup
reason string.

Change-Id: I4614ec38491fa52eb163481a96140e0e5df45829
CRs-Fixed: 2057841
2017-07-07 19:05:25 -07:00
snandini
458bd856e2 Release 5.2.0.33W
Release 5.2.0.33W

Change-Id: I1440706c601ff5e7f0ff669d159bd3e7617ef59a
CRs-Fixed: 774533
2017-07-07 13:51:32 -07:00
Naveen Rawat
5a6f840edf qcacld-3.0: Randomize NDI mac address
Randomize NDI mac address and avoid potential conflict with FW's
generated NMI mac address by setting LSB of 6th byte to 0.

Change-Id: I8b194fb06bfd1abc46c40124c813a9880d631114
CRs-Fixed: 2053119
2017-07-07 13:51:31 -07:00
Naveen Rawat
c4b045cc81 qcacld-3.0: Enable support for multiple NAN Data Interfaces
Enable support for multiple nan data interfaces. The usespace
may need to create multiple NDIs depending on whether it
requires IP isolation or not.

Change-Id: I4391f2efdc6bdede52a73915531d39dd7798c39d
CRs-Fixed: 2028187
2017-07-07 13:51:29 -07:00
snandini
26ff90c71b Release 5.2.0.33V
Release 5.2.0.33V

Change-Id: Ib99bbd4f97274417bf99108749543eb7d7eca4fc
CRs-Fixed: 774533
2017-07-07 06:27:13 -07:00
Abhishek Singh
caf6a6537a qcacld-3.0: Free callback arg of set link state while discarding WMA msg
If set link state cmd is present in MC thread and is not processed,
during unload/SSR the msg is discarded but callback arg is not freed.

To fix this free the callback argument while discarding the link state
cmd from WMA msg queue.

Change-Id: Ie532a8983c8efbf3a24eef3b93a8c723bfc65a3f
CRs-Fixed: 2053978
2017-07-07 06:27:12 -07:00
snandini
a72eba2769 Release 5.2.0.33U
Release 5.2.0.33U

Change-Id: I9d239cebb6b6291bdfca0a8aa5bb6706ed7b28aa
CRs-Fixed: 774533
2017-07-07 05:42:25 -07:00
Will Huang
a981459c44 qcacld-3.0: Add support of request peer stats info(part 1)
qcacld-2.0 to qcacld-3.0 propagation

FW has limitation to support old WMI_REQUEST_STATS_CMDID and
WMI_UPDATE_STATS_EVENTID interface on AP vDev. FW suggest to use new
WMI_REQUEST_PEER_STATS_INFO_CMDID and WMI_PEER_STATS_INFO_EVENTID to
get tx/rx rate.

This checkin is about WMA layer which process SME message to get peer
stats info and WMI event WMI_PEER_STATS_INFO_EVENTID which send from
firmware as response to WMI_REQUEST_PEER_STATS_INFO_CMDID. There are
also updates using old WMI_REQUEST_STATS_CMDID to get peer stats.

Change-Id: I964520dc44c112875434771154f55f4746298308
CRs-Fixed: 2046459
2017-07-07 05:42:24 -07:00
Houston Hoffman
b6084f1ab8 qcacld-3.0: Free hif recv buffers in cds_flush
Hif recv buffers with fw events were being leaked
in the cds_sched_flush_mc_mqs opperation.

Change-Id: Idc7752740eb955b61876bd235e5e9516f98af4bf
CRs-Fixed: 2004858
2017-07-07 05:42:22 -07:00
snandini
71bf50d1a2 Release 5.2.0.33T
Release 5.2.0.33T

Change-Id: Ib4fea9c63e77500dca2651e874b4d2e244577282
CRs-Fixed: 774533
2017-07-06 17:50:35 -07:00
Naveen Rawat
f440a13e19 qcacld-3.0: Ensure SNR/RSSI fits int8 before passing to UMAC
Firmware reports SNR and RSSI in int32 variable due to restriction
of WMI, however host uses int8 for these. This is causing RSSI or
SNR value to be altered when typecasted. Fix range change for SNR
and RSSI at WMA and ensure it fits int8 before passing to UMAC.

Change-Id: Idc3c4f48bb1212b5f10104843960d1a509403456
CRs-Fixed: 2042747
2017-07-06 17:50:35 -07:00
Hanumanth Reddy Pothula
90051789ab qcacld-3.0: Update valid rssi value to upper-layer
For a small window during roaming and new connection, there is a
possibility of firmware to send the invalid rssi value(other than
0-127), leading driver to send the same invalid rssi value to upper-layer.

To mitigate this issue:
1) Either send previous valid rssi value to upper-layer on receiving invalid
   rssi value from the firmware.
2) Or if previous rssi value is not valid, fetch rssi value from beacon frame
   of connected AP from scan cache.

Change-Id: I4443ed06cd80826ff386c2b4a536a2dc1a1e0881
CRs-Fixed: 2042747
2017-07-06 17:50:32 -07:00
snandini
cad1c922f6 Release 5.2.0.33S
Release 5.2.0.33S

Change-Id: I7ae3ab611f3c2045c8c27d9afd400f4619dd737c
CRs-Fixed: 774533
2017-07-06 15:41:29 -07:00
Rajeev Kumar
b581380438 qcacld-3.0: Address excessive logging during PE frame parsing
Commit I1054c7df18780469849be55fc4343f09ac502a49 introduced
excessive logging because PE is using WARN log level to dump
frames. Reduce log level to debug level and remove hexdump
log as its not a fatal/error condition.

Change-Id: I75052c28c4bafdf36ff5fd8837da172ccce1abf8
CRs-Fixed: 2066381
2017-07-06 15:41:29 -07:00
Naveen Rawat
9383625dd6 qcacld-3.0: Add option to avoid timestamp in version string
Adding timestamp in version string is causing long compile times
for wlan project. Add option to avoid timestamp so that developers
can avoid long compile times.

Change-Id: Iaa5fd4f432549844ae319451cb43929a2d4b68ea
CRs-Fixed: 2064805
2017-07-06 15:41:27 -07:00
snandini
357f43ef5f Release 5.2.0.33R
Release 5.2.0.33R

Change-Id: Iab01e156e9af3ee59dd7e0fa2ca6e3b86f0cba7a
CRs-Fixed: 774533
2017-07-06 13:50:59 -07:00
Dustin Brown
32cb479206 qcacld-3.0: Refactor __wlan_hdd_cfg80211_get_station
__wlan_hdd_cfg80211_get_station() is notoriously overly complicated.
Begin refactoring this function by factoring out some of the conditional
compilation.

Change-Id: I8a0e66a8dc4bf320080f417b196ead6df06d0995
CRs-Fixed: 2071619
2017-07-06 13:50:58 -07:00
Dustin Brown
0f5260dc35 qcacld-3.0: Refactor wlan_hdd_get_station_stats
For improved clarity, refactor wlan_hdd_get_station_stats by reducing
nesting.

Change-Id: I3382a9a0f077e741bb3f8d78cd2e59c9a58d6548
CRs-Fixed: 2071623
2017-07-06 13:50:56 -07:00
snandini
21d487748d Release 5.2.0.33Q
Release 5.2.0.33Q

Change-Id: Ie6439469f6be10cc6c8bcb36b5e8fb676e54c7be
CRs-Fixed: 774533
2017-07-06 09:41:40 -07:00
Abhishek Singh
951eed897f qcacld-3.0: Add support for attributes in MBO-OCE IE
Currently MBO-OCE IE doesn't support different attributes and
consider the IE as fixed IE with only cellular data and assoc
disallowed attributes.

To fix this added support for parsing of different attributes of
MBO-OCE IE

Change-Id: Ia7eb38cec3dbb4022acbcc06588004b5bf4ca87f
CRs-Fixed: 2063865
2017-07-06 09:41:39 -07:00
snandini
6f0ced5627 Release 5.2.0.33P
Release 5.2.0.33P

Change-Id: Id81f096a21a560864208a2782d4f5dc3d0f93111
CRs-Fixed: 774533
2017-07-06 07:45:24 -07:00
SaidiReddy Yenuga
466b3ce1b0 qcacld-3.0: Fix memory leak issues in HDD
In few instances memory allocated dynamically, but
its not freed after usage.

free the allocated space after usage.

CRs-Fixed: 2041467
Change-Id: Iae551cd3acbb6bc2618f05cfdc33e4f742d63192
2017-07-06 07:45:23 -07:00
snandini
88e2a04504 Release 5.2.0.33O
Release 5.2.0.33O

Change-Id: Id54903df632c905f70ad54eb70ad4b95212dba31
CRs-Fixed: 774533
2017-07-06 03:50:30 -07:00
Manikandan Mohan
71844ea2cb qcacld-3.0: Move IPA SSR deinit after CDS Sched close
Fix crash due to race condition between MC thread and shutdown
sequence worker thread by moving IPA SSR deinit after MC thread
shutdown.

Change-Id: Id9ee6de5b176e302f865ab959aca29fb708dd6bc
CRs-fixed: 2071804
2017-07-06 03:50:29 -07:00
snandini
950e541980 Release 5.2.0.33N
Release 5.2.0.33N

Change-Id: Id135ec5392b2bfa9c60400f3fb234e38c0dc17ed
CRs-Fixed: 774533
2017-07-05 22:57:32 -07:00
Ravi Joshi
3750de94c4 qcacld-3.0: Configure scan burst duration when NDI is active
Configure burst duration for the scan when VDEV is in NDI mode
and at least one peer is connected.

CRs-Fixed: 2055300
Change-Id: I4cd582ad8df6bc2aa2095cff1933b2f9d166fd60
2017-07-05 22:57:31 -07:00
Ravi Joshi
1a2925608c qcacld-3.0: Fix stability issue while freeing NDI session
It is better to follow 2 stage sequence for NAN as well like
1) open adapter 2) start adapter (sme_open_session). Since that
is not possible making hdd_init_nan_data_mode happens at the end
when all adapters registered.

Change-Id: Ib67a8f8e9ee5546a77d90d04f0a69a2a5a739e4d
CRs-Fixed: 2049177
2017-07-05 22:57:30 -07:00
snandini
5fc7544e54 Release 5.2.0.33M
Release 5.2.0.33M

Change-Id: Ida19946d58d68e9aef33e4ca5e20917496caf82b
CRs-Fixed: 774533
2017-07-05 22:12:13 -07:00
Ravi Joshi
bf5981365c qcacld-3.0: Fix NAN peer addition/deletion with all-zero mac addr
NAN Enable/NAN Disable followed by NAN data request causes NDP to
fail. The failure is due to the firmware sending all-zero peer
mac address. Even though, FW should not be sending all-zero
peer address, the host should not attempt to add/delete such
a peer.

CRs-Fixed: 2043780
Change-Id: Ieab390d3fe4c585e1692767839856af2ad17a37b
2017-07-05 22:12:13 -07:00
wadesong
42968e93c3 qcacld-3.0: Fix build errors generated by gcc 6
Gcc 6 introduces some stricter checking for indentation,
causing warnings of misleading-indentation, which are
treated as build errors when drivers are compiled.

Fix all the identation warnings under qcacld-3.0.

Change-Id: Ie197761cfe4334ab14d593adebc56375372ba37c
CRs-Fixed: 2058158
2017-07-05 22:12:11 -07:00
Ravi Joshi
b228f09444 qcacld-3.0: Fix cds_mc_thread getting stuck in infinite loop
A null IE in the bss entry was causing a busyloop in the
cds-mc-thread.

Change-Id: Ia8bc11f7ee31b2be48d6f1fd9cfb50bc6e49c0c3
CRs-Fixed: 2043510
2017-07-05 22:12:09 -07:00
snandini
663d2424c1 Release 5.2.0.33L
Release 5.2.0.33L

Change-Id: I066b3fc3090aae05234aad2b0b0e837441f20a7f
CRs-Fixed: 774533
2017-07-05 17:51:09 -07:00
Arif Hussain
f73e843bd4 qcacld-3.0: Send WMA_SWITCH_CHANNEL_RSP in wma_set_channel for monitor mode
In wma_set_channel function for monitor mode WMI_PDEV_SET_CHANNEL_CMDID
is used to set channel.

In lim, while sending WMA_CHNL_SWITCH_REQ, defer flag was set to wait for
WMA_SWITCH_CHANNEL_RSP from firmware, incase if we don’t use
WMA_CHNL_SWITCH_REQ in monitor mode, send WMA_SWITCH_CHANNEL_RSP
from wma_set_channel itself to reset defer flag in lim.

Change-Id: Ica96be08d8fb2af5ca5dc07182b690ea5c2bdbae
CRs-Fixed: 2010363
2017-07-05 17:51:08 -07:00
Sameer Thalappil
ac5d26eb5e qcacld-3.0: Add support for host initiated recovery
If platform has a mechanism to initiate target assert, trigger
that interface to force assert target. Certain integrated platforms
(where WLAN runs on it's own PD) provides a mechanism to initiate PDR
from host. That interface can be triggered when WLAN host detect
timeout scenarios.

CRs-Fixed: 1110243
Change-Id: I6a9408f47ca4245380dbf4177363c3c461ff948d
2017-07-05 17:51:06 -07:00
Rajeev Kumar
170310b310 qcacld-3.0: Remove obsolete FTM state data structures
FTM state structures wlan_hdd_ftm_state and wlan_hdd_ftm_status
are not used hence remove them.

Change-Id: I03e0e11e3f7436da99eeb6a1b0fd128e5bf31e7e
CRs-Fixed: 2052605
2017-07-05 15:53:25 -07:00
snandini
2a519af313 Release 5.2.0.33K
Release 5.2.0.33K

Change-Id: I4eadd0d92f758373f0131e7095b9f488efd09941
CRs-Fixed: 774533
2017-07-05 11:50:54 -07:00
Deepak Dhamdhere
be72e80caa qcacld-3.0: Fix error handling in peer creation
Return error instead of QDF_BUG(0) in ol_txrx_peer_attach() when it
times out on duplicate peer detection. Peer unmap events from firmware
may take more than 500 ms timeout observed by this routine.
wma_create_peer() should return error status on failure to create peer.

CRs-Fixed: 2004665
Change-Id: I8368c6320139f97584bd1647f1806a695d4a5929
2017-07-05 11:50:53 -07:00
snandini
7add0f66d1 Release 5.2.0.33J
Release 5.2.0.33J

Change-Id: I3576b8052369aa6c4a06d34a642525f8c0cf1eb8
CRs-Fixed: 774533
2017-07-05 09:45:01 -07:00
Jeff Johnson
ab01d2b9af qcacld-3.0: Move WMI_PDEV_FIPS_EVENTID handling to workqueue
Currently the WMI_PDEV_FIPS_EVENTID handler is registered to use
WMA_RX_SERIALIZER_CTX. However the FIPS feature does not use pMac and
hence does not require serialization through the MC Thread. So change
the registration to use WMA_RX_WORK_CTX.

Change-Id: Iec0b87331008bbe393efa1cbc2071af75012022e
CRs-Fixed: 2068572
2017-07-05 09:45:00 -07:00
snandini
f87f0df229 Release 5.2.0.33I
Release 5.2.0.33I

Change-Id: I8ccf64cdbf4f8cf5ccdceb9a7b348f10039f67c9
CRs-Fixed: 774533
2017-07-05 07:45:16 -07:00
Wu Gao
2968fc953f qcacld-3.0: Check pointer pLimJoinReq before access
When reassoc to AP, pLimJoinReq will be NULL and there is not NUll
check before access, which cause DUT crash. Verify the pointer before
access it, set SMPS for both join and reassoc cases.

Change-Id: Ifbaf8d52c4be1a2a31506e4ab49e6d5b68596645
CRs-Fixed: 2062392
2017-07-05 07:45:16 -07:00
snandini
2a0d9a51d1 Release 5.2.0.33H
Release 5.2.0.33H

Change-Id: Ic616d4e81988cf6ea5d58576b2e033b17d73d385
CRs-Fixed: 774533
2017-07-05 05:50:40 -07:00
Ashish Kumar Dhanotiya
9335d81f23 qcacld-3.0: Add host support to configure ITO repeat count
Add Host support to configure inactivity timeout repeated
count from ini.

Change-Id: I6b079ab55470838a9bf5488ec18dbd2977c3ee17
CRs-Fixed: 2066004
2017-07-05 05:50:39 -07:00
snandini
205f9d15e5 Release 5.2.0.33G
Release 5.2.0.33G

Change-Id: Ib3613fc014c2599825598e44c925f89b66e26722
CRs-Fixed: 774533
2017-07-05 03:40:56 -07:00
Ashish Kumar Dhanotiya
09d22cf288 qcacld-3.0: Add correct api call to get proper boot time
Propagation from qcacld-2.0 to qcacld-3.0.

Currently to get clock boottime, qdf_get_monotonic_boottime_ns
api is getting used which does not include the suspend time.

To include the system suspend time also in clock boottime, use
qdf_get_bootbased_boottime_ns api which uses ktime_get_boot_ns
kernel api.

Change-Id: Ibcc628c315201fa3ced7e1ad96753772d91707b2
CRs-Fixed: 2067770
2017-07-05 03:40:55 -07:00
snandini
4f0e084945 Release 5.2.0.33F
Release 5.2.0.33F

Change-Id: I7ae2446cdbbd4750d0d715bd5aca2dfbb9f75733
CRs-Fixed: 774533
2017-07-04 05:40:43 -07:00
Wu Gao
5f107a05ad qcacld-3.0: Free ipa uc tx buffer pool with adaptive method
If do not define QCA_WIFI_3_0, it alloc ipa uc tx buffer by
qdf_nbuf_alloc, but free by qdf_mem_free_consistent, which cause
memory leak. Solution is freeing with corresponding method.

Change-Id: I407712e545acfe5aeef8c8afa58785e42556ca02
CRs-Fixed: 2061922
2017-07-04 05:40:42 -07:00
snandini
511043a2fe Release 5.2.0.33E
Release 5.2.0.33E

Change-Id: I14fbfdd7542932b35790976199497d96e9010707
CRs-Fixed: 774533
2017-07-04 04:29:57 -07:00
jge
35cba62d45 qcacld-3.0: Correct NULL check when using ol_tx_dest_addr_find
Fix static analyze issues. add NULL pointer check.

Change-Id: Icc80211b945d1eaabfb6015ba93e0c3114f2c589
CRs-Fixed: 2059683
2017-07-04 04:29:56 -07:00
snandini
264d8cc94e Release 5.2.0.33D
Release 5.2.0.33D

Change-Id: Ic80a20cb94e07c6d6a802cf1f809072860fefd62
CRs-Fixed: 774533
2017-07-04 03:45:23 -07:00
Rajeev Kumar Sirasanagandla
873b6d9b66 qcacld-3.0: Send proper CTL info to fw in world regd
Currently, for world regd and some other regds where conformance test
limit is NO_CTL, host is sending invalid CTL info to fw instead of
NO_CTL (0xff) due to type conversion issues.

To fix this, use proper unsigned type for CTL info.

Change-Id: I6aff04f0142b5c8e4ff2ea91d85ae7108390c89f
CRs-Fixed: 2056834
2017-07-04 03:45:22 -07:00
snandini
6646bd4be6 Release 5.2.0.33C
Release 5.2.0.33C

Change-Id: Id447ce883de579e21dd499edec8ffd2bde56682f
CRs-Fixed: 774533
2017-07-04 01:42:26 -07:00
Deepak Dhamdhere
57c95ffabf qcacld-3.0: Scan stuck when lfr enable/disable using pvt ioctl
When dissassoc or deauth is issued by user a.k.a (supplicant), it has
dependency on few parameters like isFastRoamIniFeatureEnable in
cleanup path. This change removes the dependency.

Change-Id: I601e33e7e57b0ebb76fd06d3c176bfabb9568ba8
CRs-Fixed: 754116
2017-07-04 01:42:25 -07:00
snandini
5e3ef0ac56 Release 5.2.0.33B
Release 5.2.0.33B

Change-Id: Ib6f955e3e9c05fbbe18c8de3c984fcc6a33b32f4
CRs-Fixed: 774533
2017-07-03 19:54:20 -07:00
Hanumanth Reddy Pothula
2a8a740a4d qcacld-3.0: Add support for SSR within SSR
Add below changes to support SSR within SSR,
1.Add new driver state, CDS_DRIVER_STATE_BAD, which will be set
  on re-init failure and reset on re-init success and if this
  state is set, don't allow any north-bound calls.
2.Don't de-register wiphy/netdev on re-init failure.
3.BUG_ON if re-init or probe fails successively for two times.
4.During driver unload, don't wait for SSR to be completed.

Change-Id: Id05a3e4b592664c9b56c7dd83b965b973f1d5ca5
CRs-Fixed: 2037628
2017-07-03 19:54:20 -07:00
bings
61d5bec36f qcacld-3.0: Do not assign ht_sec_ch with sec_ch_offset
Supplicant reports ACS failed, if driver indicates invalid ht_sec_ch.
Do not assign ht_sec_ch with sec_ch_offset, because they are not the
same thing.

Change-Id: I8fb2a42973b67bb045d385b1fd90ee32917450ea
CRs-Fixed: 2067092
2017-07-03 19:54:18 -07:00
snandini
f8b3682e50 Release 5.2.0.33A
Release 5.2.0.33A

Change-Id: I8dce59eb638bc792c3c96be32733b7bc1ac2b874
CRs-Fixed: 774533
2017-07-03 19:09:34 -07:00
Naveen Rawat
81f058cf6a qcacld-3.0: Fix IE length in function sme_get_beacon_frm
Fix IE length in function sme_get_beacon_frm.

Change-Id: Iaec7f14e0e2c9078037fbbb586d9d0ac64b4e0de
CRs-Fixed: 2055891
2017-07-03 19:09:33 -07:00
Naveen Rawat
247a868164 qcacld-3.0: Program num tx chains for 11abg to FW
Program num tx chains for 11abg FW via pdev params. This will
help enhance power save in firmware.

Change-Id: I1f5815f2914f65928f8f3d72e53d409ecf6d1fe7
CRs-Fixed: 2056531
2017-07-03 19:09:32 -07:00
snandini
00a62e7493 Release 5.2.0.33
Release 5.2.0.33

Change-Id: I4d8dba031fc1bf9a31a0c1a68af1578ec1706aba
CRs-Fixed: 774533
2017-07-03 18:24:49 -07:00
Mukul Sharma
e44d054ec2 qcacld-3.0: Remove wow wake lock overloading
Currently, Host uses single wow_wake-lock for all wow
wakeup events like (auth/assoc/deauth/disassoc etc)
which raise difficulty to detect what is actual cause of
holding wake lock.
As a part of this fix, Add separate multiple wake locks
to remove wake lock overloading.

Change-Id: Iac0a6f73ac05dd3960a4ea0229190cb851808e16
CRs-Fixed: 2046511
2017-07-03 18:24:48 -07:00
Hanumanth Reddy Pothula
9c161dd8a7 qcacld-3.0: Add ini parm to control SAP restart on channel avoid indication
Restart SAP(P2P_GO) only if ini parameter, sap_restart_on_ch_avoid,
is set. By default its enabled.

Change-Id: I0aee79ba2d5e0cfa8a7b0c7b1901c61614944338
CRs-Fixed: 2023854
2017-07-03 18:24:47 -07:00
Hanumanth Reddy Pothula
0b5714337a qcacld-3.0: verify driver state when CDS scheduler getting closed
Presently, in cds_open() error handling, cds_sched_open is invoked only
in UNINTIALIZED or recovery state but same is not checked while invoking
cds_sched_close.

Invoke cds_sched_close only if driver is in UNITIALIZED state or WLAN
driver recovery is in progress.

Change-Id: I17e2cbe8f859cab4bc12d1a52a583833fb125ada
CRs-Fixed: 2010802
2017-07-03 18:24:45 -07:00
Hanumanth Reddy Pothula
0161e1d97a qcacld-3.0: Return success for STOP DRIVER command
Presently, STOP Driver command is not handled in driver
as interface down will takes care to close the modules
if there are no more interfaces up. But when framework
issues this command, it's going to bad state as driver
returns failure.

To mitigate this issue return SUCCESS for STOP DRIVER command.

Change-Id: I47e6898109a35e3194c18645c932c5b2cf5a73c8
CRs-Fixed: 2006563
2017-07-03 18:24:43 -07:00
Hanumanth Reddy Pothula
9343088016 qcacld-3.0: Invoke DEL_STA within driver on receiving STOP_AP
In some scenarios like, driver rmmod or on terminating hostapd or
on terminating dataservice process, driver receives directly STOP_AP
indication without DEl_STA indication from upper-layer, leading to
cleanup of stations connected to SAP won’t happen within driver.

To mitigate this issue call DEL_STA within driver on receiving
STOP_AP indication.

Change-Id: I7050f1788c1fa9a9ede190874a5d494f896abfff
CRs-Fixed: 2010222
2017-07-03 18:24:41 -07:00
snandini
2227c8aa40 Release 5.2.0.32Z
Release 5.2.0.32Z

Change-Id: I67d512197d76f93e6a71c2c960aa7e81442867b9
CRs-Fixed: 774533
2017-07-03 17:40:57 -07:00
Hanumanth Reddy Pothula
ca84ec5a44 qcacld-3.0: Clear current MC address list before configuring new list
Presently, on receiving new MC address list, Host is just updating
MC address list and sending same to FW, without clearing previously
configured MC address list. This may lead to MC address list not to
be cleanly configured in FW.

Before configuring new address, clear previously configured  MC
address list.

Change-Id: Ia0c79099d248c3d992b9fa420d46c1464229b03a
CRs-Fixed: 2009368
2017-07-03 17:40:56 -07:00
Will Huang
19d322b907 Revert "qcacld-3.0: Reject AssocReq without cipher IE to security SAP"
This reverts commit e21734860079b0a8bf9f3158a2bf1fbcc09d0855, because
it fails WPS_PIN certification test. Some ref-STA connect to SAP
without WPS IEs and any security IEs when test this case, but this case
can still pass if accept this Association Request.

Change-Id: I037752a78a72730f88569c2cf222da7e0cf6e085
CRs-Fixed: 2070525
2017-07-03 17:40:54 -07:00
Ravi Kumar Bokka
91a8f3c649 qcacld-3.0: Remove obsolete McastBcastFilter ini feature
The McastBcastFilter configuration item is not being used, and support
is being dropped from the driver. Remove the McastBcastFilter setting
feature from the driver.

Change-Id: I6fc0e48e31c01ba2df73c51b3fd9ec2a84571541
CRs-Fixed: 2045284
2017-07-03 17:40:52 -07:00
snandini
3e1bca79e3 Release 5.2.0.32Y
Release 5.2.0.32Y

Change-Id: I88f07d958ccff99dff1ef0e5307194a5d1cef24a
CRs-Fixed: 774533
2017-07-03 16:24:33 -07:00
bings
bd6bc472c1 qcacld-3.0: Correct channel width in hdd_chan_change_notify
For non-11n mode, set channel_type as NL80211_CHAN_NO_HT.

Change-Id: I170504990b7850fb6d8d1640fb7c661b2d43c122
CRs-Fixed: 2065328
2017-07-03 16:24:32 -07:00
snandini
531113f6eb Release 5.2.0.32X
Release 5.2.0.32X

Change-Id: Ibc0e116c8505f8c8fa1464b062e45384cbd6a89c
CRs-Fixed: 774533
2017-07-03 15:40:12 -07:00
Ravi Kumar Bokka
6cb9b3747b qcacld-3.0: Validate vendor command set roaming params
Currently there is no nl policy defined for vendor sub command
QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX which may result in
buffer overread error.

To resolve this, add nl policy.

Change-Id: Ib5d3c34dbcec29a98766753efc4e9c4ecf748c2e
CRs-Fixed: 2054693
2017-07-03 15:40:09 -07:00
Sreelakshmi Konamki
df43ff8c80 qcacld-3.0: Remove key debug logs
wlan_hdd_cfg80211_set_key_wapi() and sme_roam_set_key() prints
key information in default host logs.

Fix to remove debug logs which prints sensitive key information.

Change-Id: Ib71da962761f9b6b5fd8ba214676b649529bcaa7
CRs-Fixed: 2058305
2017-07-03 15:40:07 -07:00
SaidiReddy Yenuga
c356f15969 qcacld-3.0: Fix buffer over flow in hdd state ctrl
In hdd state ctrl API buf used beyond its size.

Increase buf size to 3 to get rid of buffer over flow.

CRs-fixed: 2029584
Change-Id: Ie353d449f167bee05833841350d61dc0935786fc
2017-07-03 15:40:05 -07:00
Sameer Thalappil
fc8ed77d76 qcacld-3.0: Do not invoke panic on mode request failure
Mode request at icnss can timeout when FW is crashed. Currently
driver invokes panic in this case, if the FW down indication is
not received. However there could be a race condition where the
timeout at driver can happen even before icnss receives this FW
down notification. So remove the panic to allow recovery to
kick in.

CRs-Fixed: 2070795
Change-Id: Ibeace13bd08751618424ad68e39e9b053c9be97e
2017-07-03 14:19:52 -07:00
snandini
e31c5f5d94 Release 5.2.0.32W
Release 5.2.0.32W

Change-Id: Iba91cf6d457a4510830f564180f934e711d900a1
CRs-Fixed: 774533
2017-07-01 13:41:20 -07:00
Deepak Dhamdhere
137b54e9f5 qcacld-3.0: Fix memory references in wma_remove_peer()
Check for NULL values of peer  and peer_map_addr before dereferencing.
Move the debug print statement before peer is detached and peer object
is freed.

CRs-Fixed: 1115011
Change-Id: I00d547847eed8e24a01178390b9a62be0b9b75d7
2017-07-01 13:41:20 -07:00
snandini
8ca5ad5747 Release 5.2.0.32V
Release 5.2.0.32V

Change-Id: I4a01e53b891cce6fca842f3d8b0d7601994c018e
CRs-Fixed: 774533
2017-06-30 22:50:41 -07:00
Rakesh Pillai
7fb7a1f850 qcacld-3.0: Fix CLANG warnings in Data path
implicit conversion from enumeration type 'QDF_STATUS' to different enumeration type 'A_STATUS'
implicit conversion from enumeration type 'A_STATUS' to different enumeration type 'QDF_STATUS'

CRs-Fixed: 2063339
Change-Id: Ib96a49f40ea581127405560087354e7fa9bf46ec
2017-06-30 22:50:40 -07:00
snandini
b07bf1f7e6 Release 5.2.0.32U
Release 5.2.0.32U

Change-Id: I1927c2bc92aaf972999aab41ffce558bf9f1a33c
CRs-Fixed: 774533
2017-06-30 15:50:19 -07:00
Sandeep Puligilla
e64099d67f qcacld-3.0: Don't serialize IPA stats request
SME queue is getting overflow due to IPA
stats request which gets posted at every 100ms.

Don't process IPA stats request in cds thread
context instead call wma API in the worker thread
context.

Change-Id: Id1ae20a1256ecd7ee43c2e3ebf50a14dc22e6714
CRs-Fixed: 2047462
2017-06-30 15:50:19 -07:00
Naveen Rawat
f2bd42d692 qcacld-3.0: Fix off by one access to WMA->interface
Fix vdev_id validation at wma. Currently validation for vdev_id
which is an index to wma->interface array is off by 1.

Change-Id: I01fa048af08f76244896ae1ca4c53c61c1c60397
CRs-Fixed: 2057505
2017-06-30 15:50:17 -07:00
snandini
c8d0dc79de Release 5.2.0.32T
Release 5.2.0.32T

Change-Id: I612a121c9a6f6f1b1d37f2d637139678a23ec761
CRs-Fixed: 774533
2017-06-30 09:34:17 -07:00
SaidiReddy Yenuga
dec1bfc9dc qcacld-3.0: Add lost AP sample size entry to nla policy
qcacld-2.0 to qcacld-3.0 Propagation.

improper validation of
QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
results in assigning an unchecked user-controller value.
This can lead to buffer overflow.

validate QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE.

CRs-Fixed: 2056253
Change-Id: I7c33b6d78054672e9effbe9100c29e5604c250c6
2017-06-30 09:34:16 -07:00
snandini
75f21eb780 Release 5.2.0.32S
Release 5.2.0.32S

Change-Id: Ic31112b53036e317fa6cbef823b160995078d9f9
CRs-Fixed: 774533
2017-06-30 08:19:59 -07:00
SaidiReddy Yenuga
39ac0cd13c qcacld-3.0: Validate NLA attr in wlan_hdd_cfg80211_vendor_scan API
NLA attribute QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE
used without validation.

validate NLA attribute.

CRs-Fixed: 2025686
Change-Id: I76c483df543c3b5f96282162a5e883dd1d6bc204
2017-06-30 08:19:58 -07:00
Poddar, Siddarth
37a302d35e qcacld-3.0: Make the packet LRO ineligible when tcp udp checksum fail
Send the packet to network stack with lro non-eligible
whenever tcp_udp_checksum fail.

Change-Id: I1c4d71fbc4cf7ce2e13d4e6c8dafbafdf76b0c2f
CRs-Fixed: 2068442
2017-06-30 08:19:57 -07:00
snandini
9aa72a39a3 Release 5.2.0.32R
Release 5.2.0.32R

Change-Id: I60a8eee37a7b3dfd18f875fa2420ecc12a9b41c2
CRs-Fixed: 774533
2017-06-30 07:38:41 -07:00
SaidiReddy Yenuga
88680b035f qcacld-3.0: Add get valid channels entry to NLA policy
qcacld-2.0 to qcacld-3.0 Propagation.

improper validation of
QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS.

validate QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS.

CRs-Fixed: 2053000
Change-Id: I16e5808492b5b35dc8b646af45d6ac6d65561804
2017-06-30 07:38:40 -07:00
SaidiReddy Yenuga
8e5d332f12 qcacld-3.0: validate vendor get station command
Currently in __hdd_cfg80211_get_station_cmd there are two
attributes which are not properly validated.

Define an appropriate nla_policy and specify this policy when
invoking nla_parse().

CRs-Fixed: 2054741
Change-Id: I36e12f001b05069c8e06adb1f264392232b13bfb
2017-06-30 07:38:39 -07:00
SaidiReddy Yenuga
ecb273bc6e qcacld-3.0: Fix buffer overread in get oui vendor command
qcacld-2.0 to qcacld-3.0 Propagation.

In get oui ie command API, ie pointer read out
of boundary.

Return NULL if ie length is less than oui size.

CRs-Fixed: 2053002
Change-Id: I13375d3bfa472eda25d8d6191431dd1f79bf5842
2017-06-30 07:38:38 -07:00
snandini
1021c6a154 Release 5.2.0.32Q
Release 5.2.0.32Q

Change-Id: Iae5e48dab6d20d30a4688f970f4ce7cf050381f9
CRs-Fixed: 774533
2017-06-30 04:50:25 -07:00
Kapil Gupta
53d9b575c5 qcacld-3.0: Remove unwanted error msgs
Add changes to remove unwanted error messages from peer create/
delete events.

Change-Id: Ic511b1799db36d1da4bda491792889db881de233
CRs-Fixed: 2040800
2017-06-30 04:50:24 -07:00
Abhishek Singh
217d978511 qcacld-3.0: Wait for all peer unmap events
Currently even though all peer unmaps events of last associated peer are
not received, driver still goes ahead for new connection with a diffrent peer.
Now if firmware uses same peer id for new peer also this causes synchronization
issue of peer ref counts and will eventually lead of kernel panic.

Add changes to wait for last peer's all unmap events before proceeding with
new connection

CRs-Fixed: 2040627
Change-Id: I30e74d9bebe66fec55d7682d3cec581a078f5e75
2017-06-30 04:50:23 -07:00
snandini
1801893f6f Release 5.2.0.32P
Release 5.2.0.32P

Change-Id: I26fb886d309f6c028652e20433569cc585d25ad5
CRs-Fixed: 774533
2017-06-30 04:06:23 -07:00