Commit Graph

5443 Commits

Author SHA1 Message Date
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
Sravan Kumar Kairam
374a868b36 qcacld-3.0: Disable IPA WDI pipes before disconnect
Currently in case of HDD interface change timeout call back
disabling of IPA WDI pipes is not handled and only disconnect
is called. As a result disconnect fails because IPA driver
expects suspend and disable before disconnect. In this change
disable IPA pipes before doing disconnect.

Change-Id: I5ddf222730d57b39ba15bd5923c22d585eb52b08
CRs-Fixed: 2047110
2017-06-30 04:06:22 -07:00
Kapil Gupta
10800b9131 qcacld-3.0: Reduce logs in case of Tx failure
In case on continuous Tx failure of management packets, logs
flooding can cause watchdog timeout.

Add changes to reduce log dumping in case of transmission
failure and log every 50th packet failure

Change-Id: Ia975fb71fcd14eb6abd8c0712d9d0704d592f97b
CRs-Fixed: 2040917
2017-06-30 04:06:21 -07:00
Kapil Gupta
8c33665bb6 qcacld-3.0: Avoid bug_on during driver unload for FW timeout
Driver unload may flush VDEV delete response from FW by
calling wma_mc_discard_msg which may cause this request to not
to be removed from wma_hold_req_queue queue.
Since during unload, wma_shutdown_notifier_cb goes through
pending response queue to see what are pending requests and it
may cause kernel panic for this req since response is already flushed.
Add changes to avoid bug_on during driver unload for FW timeout

CRs-Fixed: 2046856
Change-Id: I41cba0883099799c542329075d4620343e6b9d76
2017-06-30 04:06:20 -07:00
snandini
76563cd485 Release 5.2.0.32O
Release 5.2.0.32O

Change-Id: If227eee2becc12e95ca620cb717f6432618ca5f5
CRs-Fixed: 774533
2017-06-30 03:20:15 -07:00
Hanumanth Reddy Pothula
fc70ea378a qcacld-3.0: Reset unloading in progress on driver remove
When platform driver initiates wlan driver remove, driver state
is set to unloading but it is not cleared on successful driver
remove, leading unload bit to be set forever and thereby host
returns failure for all north bound requests, though driver is
loaded successfully after this scenario.

After wlan driver is removed, clear the driver unload bit, so
that on next successful driver load, host can process north
bound requests.

Change-Id: I600705b340a824bcaa524e2ed981ad35943fb5cd
CRs-Fixed: 1113037
2017-06-30 03:20:15 -07:00
snandini
e3c957712c Release 5.2.0.32N
Release 5.2.0.32N

Change-Id: I34f45872475c733bdf5f53ca088d8b7afa738546
CRs-Fixed: 774533
2017-06-30 01:51:09 -07:00
Sreelakshmi Konamki
7a57408999 qcacld-3.0: Validate suspecious pointer dereference
Add NULL check before dereferencing wma handle in
wma_ipa_uc_stat_request().

Change-Id: If336af0c350fa5615aeb9481ef6d759811e09f59
CRs-Fixed: 2047207
2017-06-30 01:51:09 -07:00
snandini
674077074b Release 5.2.0.32M
Release 5.2.0.32M

Change-Id: Ife851118d631061f85658be3d628858b31e02be6
CRs-Fixed: 774533
2017-06-29 23:40:52 -07:00
lifeng
c0fb61a3f5 qcacld-3.0: Fix the issue of launching guest ap in SCC
Try to set ap-ap mode on single wifi with acs enabled,
primary ap can start up successfully, but fail to bring up
the guest ap.

The fix is to call appropriate procedure once the guest ap
skip acs scan before starting bss.

Change-Id: I106269308932dafff27f9dc0665ade06b88e99a6
CRs-Fixed: 2063960
2017-06-29 23:40:52 -07:00
snandini
62c330fc02 Release 5.2.0.32L
Release 5.2.0.32L

Change-Id: I61061869132e31c997eec0e194906d822613359a
CRs-Fixed: 774533
2017-06-29 20:30:40 -07:00
jge
9bd51dd66b qcacld-3.0: Correct NULL check in ol_tx_bad_peer_update_tx_limit
Fix static analyze issues. add NULL pointer check.

Change-Id: If1380a23a87a50d50458d10f87a512fa87613b27
CRs-Fixed: 2059753
2017-06-29 20:30:39 -07:00
Varun Reddy Yeturu
aa5a80c5d3 qcacld-3.0: Fix logging in auth frame reception
Fix the log spamming in lim_process_auth_frame_no_session

Change-Id: Ibbe9b2482b064f3814cb5a664792177b112557f0
CRs-Fixed: 2051360
2017-06-29 20:30:38 -07:00
Varun Reddy Yeturu
dd51e8d67b qcacld-3.0: Fix logging levels - Part 2
Move the log messages to appropriate log levels so that
the console does not get a huge spam of unnecessary logs

Change-Id: Ie58b45078ad8b4732d7b84bfb77261396bd5862a
CRs-Fixed: 2043741
2017-06-29 20:30:36 -07:00
Deepak Dhamdhere
d8455ce1fd qcacld-3.0: set channel width and phy mode to fw in vdev restart
qcacld-2.0 to qcacld-3.0 propagation

If ap switches channel, sta will follow ap, as ap may change phymode
and channel width in new channel, so host needs set new phymode and
channel mode to fw.

Change-Id: I87b28119e0f4a8005f9c80f8f32912747b28306c
CRs-Fixed: 913325
2017-06-29 20:30:35 -07:00
Jeff Johnson
19a5a7ef67 qcacld-3.0: Avoid overread when configuring MAC addresses
Currently there are multiple cfg80211 vendor commands where MAC
address attributes are defined in a nla_policy table with a type of
NLA_UNSPEC but without a minimum length. Add the proper minimum length
to avoid buffer overread.

Change-Id: I11ff2bd813dc4e6784a7cdee66a0c10ca0e69fcf
CRs-Fixed: 2062140
2017-06-29 20:30:33 -07:00
snandini
899f5bcc20 Release 5.2.0.32K
Release 5.2.0.32K

Change-Id: I3379e5c985505841519b12cccd714f952d2a6d75
CRs-Fixed: 774533
2017-06-29 19:45:42 -07:00
Naveen Rawat
8029a40b49 qcacld-3.0: Update beacon template from sme update config API
Currently sme_update_ht_config only update csr_session and sends updated
params to FW via VDEV_PARAM command. Same is not reflected in pe_session
and beacon template. Update beacon params in LIM by sending param update
message to LIM.

Change-Id: I1f926b4d2d5467c7702e03ff281879529c89f6f5
CRs-Fixed: 2055347
2017-06-29 19:45:42 -07:00
Arunk Khandavalli
3d267b41f1 qcacld-3.0: Destroy logging thread irrespective of device mode
Presently the logging thread is not destroyed if the driver is unloaded
in the FTM mode leading to accessing to invalid memory location once
the wlan driver is unloaded.

Destroy the logging thread irrespective of the device mode during
the unload of the driver.

CRs-Fixed: 2040566
Change-Id: I1a97acffa5fb292ac9d355d6a95e6fc253fc833a
2017-06-29 19:45:40 -07:00
lifeng
21b7b8bd49 qcacld-3.0: Change ssidHidden variable type as tHiddenssId enum
Change ssidHidden variable type as tHiddenssId enum instead of
original boolean type in tagCsrSSIDInfo structure to backup the
value from hdd (eg: eHIDDEN_SSID_NOT_IN_USE, eHIDDEN_SSID_ZERO_LEN,
eHIDDEN_SSID_ZERO_CONTENTS).

Change-Id: Ibc88c80856984b1b61e2fbe489219b391900dad3
CRs-Fixed: 2065342
2017-06-29 19:45:39 -07:00
Hanumanth Reddy Pothula
b2d729c52b qcacld-3.0: Set STA IDs to invalid data during STA initialization
During initializing station mode, the array holding STA IDs are
not set to HDD_WLAN_INVALID_STA_ID(0xFF), leading STA IDs to hold
a valid data, though there no connections.

Set array holding STA IDs with HDD_WLAN_INVALID_STA_ID, to make
STA IDs holding invalid data.

Change-Id: I12167e83bebe0380520676c194f11cd4848330cf
CRs-Fixed: 2053816
2017-06-29 19:45:37 -07:00
Naveen Rawat
3ca28b0769 qcacld-3.0: Change max value of dropped packet threshold to 64k
Change number of dropped packet before kickout threshold to max
theoretical value of 65535.

Change-Id: I9b29e704460cfabdc346cda7ab4bc5f01ad5ea98
CRs-Fixed: 2029453
2017-06-29 19:45:36 -07:00
snandini
8745ad2c17 Release 5.2.0.32J
Release 5.2.0.32J

Change-Id: I46a09a988b301a9e5f5cdd056f8c3776ee8c3a30
CRs-Fixed: 774533
2017-06-29 19:06:02 -07:00
Jeff Johnson
438ff42173 qcacld-3.0: Properly validate QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR
Currently the QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR nla_policy specifies
a type of NLA_STRING, but the underlying implementation expects a
NUL-terminated string. Update the policy to correctly use a type of
NLA_NUL_STRING with the len updated to remove the allocation needed
for the terminating NUL.

Change-Id: Ic73241511ab73ae63fd7c1a8d6422da91931919c
CRs-Fixed: 2062141
2017-06-29 19:06:01 -07:00
Krunal Soni
c3c8b8b34f qcacld-3.0: Add NULL check before passing VDEV object
VDEV object has not been checked against NULL value before passing as
part of message to a next layer

CRs-Fixed: 2063561
Change-Id: I9c7ad08f1e201779cb433044a1525555a2ccaa34
2017-06-29 19:06:00 -07:00
Jeff Johnson
6fa1e0113b qcacld-3.0: Add HDD FIPS infrastructure
As part of the support for the FIPS certification feature add the
HDD infrastructure.

Change-Id: I76a545c42b10a662db04b5994de100c713a46c59
CRs-Fixed: 2065002
2017-06-29 19:05:58 -07:00
Jeff Johnson
6136fb90e2 qcacld-3.0: Add WMA FIPS infrastructure
As part of the support for the FIPS certification feature add the
WMA infrastructure.

Change-Id: I7e113cee8ba9a08c2efd1141bef84e43d530cdcb
CRs-Fixed: 2065002
2017-06-29 19:05:56 -07:00
snandini
e30f7d353b Release 5.2.0.32I
Release 5.2.0.32I

Change-Id: If168d8a2a6e732634338c5a4d4fd2cbf981296c1
CRs-Fixed: 774533
2017-06-29 18:25:32 -07:00
Will Huang
03b54ee905 qcacld-3.0: Avoid using pointer without NULL check
Fix static analyze issues which cause is may dereference NULL
pointer, adding NULL pointer check or using already checked pointer.

Change-Id: Ib3a1f5214da839cd2bec4ffee16e0809095fa513
CRs-Fixed: 2058073
2017-06-29 18:25:31 -07:00
snandini
9e02d930f1 Release 5.2.0.32H
Release 5.2.0.32H

Change-Id: Ia524fd84b07a763a0dab3f6bbb2dc707383fbbd4
CRs-Fixed: 774533
2017-06-29 05:40:05 -07:00
Will Huang
bdd28711e5 qcacld-3.0: Correct NULL check when access function pointer
In function pld_pcie_uevent, pld_context->ops->uevent NULL check logic
is wrong so correct it.

Change-Id: I1bf9d8c8f5318b476761a458f5475107007dfa01
CRs-Fixed: 2058248
2017-06-29 05:40:05 -07:00
snandini
1190dfde42 Release 5.2.0.32G
Release 5.2.0.32G

Change-Id: I61db96ab9782a72d8d6ec1f66f51da196daa0de4
CRs-Fixed: 774533
2017-06-29 05:01:25 -07:00
lifeng
9537f47b1d qcacld-3.0: Fix memory leak in acs procedure
qcacld-2.0 to qcacld-3.0 propagation

Free the memory for channel list once the scanStatus is NOT
eCSR_SCAN_SUCCESS in WLANSAP_PreStartBssAcsScanCallback.

Change-Id: Id2d7fe5d7df8c032d50f02880deedb2ed1ac79fd
CRs-Fixed: 2059751
2017-06-29 05:01:24 -07:00
snandini
c1a281f52c Release 5.2.0.32F
Release 5.2.0.32F

Change-Id: I2371821139374ef312b581453838ce12b02980df
CRs-Fixed: 774533
2017-06-29 03:44:41 -07:00
Yu Wang
04ccd76c41 qcacld-3.0: add support for time stamping netbuf
Map the input target time to host time, and
time stamp netbuf with this host time.

Change-Id: I1fb298615267bb11c4f21cabe670fd4c3a12a759
CRs-Fixed: 2057693
2017-06-29 03:44:41 -07:00
Yu Wang
000dc2f19c qcacld-3.0: add support for target-host synchronization
To map target time to host time, implement a timer
to capture TSF and host time periodically.
The timer will be started when connection state of
sta/p2p_gc being changed from not associated to
associated; and stopped when from associated to
not associated.

Change-Id: I697080b95f01f173beddc038ab9ad89ee394354b
CRs-Fixed: 2057693
2017-06-29 03:44:39 -07:00
Yu Wang
f5d5b5f5cc qcacld-3.0: enhance the robustness of TSF capturing
1. Failed to get TSF if issuing cap_tsf more
   than 1 time continuously, due to the TSF
   value will be reset by the following 'cap_tsf'
   command, however, these 'cap_tsf' won't be
   excuted actually, because 'get_tsf' was not
   received after last successful 'cap_tsf'.
   To fix it, do TSF reset only if 'cap_tsf'
   will be actually excuted.

2. Add flag 'cap_tsf_flag' to make sure cap_tsf
   being executed serially.

3. Add flag 'tsf_ready_flag' to indicate whether
   TSF feature has been initialized successfully.
   Add 'TSF_NOT_READY' in 'hdd_tsf_get_state' to
   indicate this state.

Propagated from qcacld-2.0

Change-Id: Ib768e3d7f0b33a75e8bd838d4ed1c0b84e3aa13d
CRs-Fixed: 2057693
2017-06-29 03:44:38 -07:00
hqu
c7f560cb21 qcacld-3.0: Translate the AC enums defined in htt
The AC values used by htt and txrx module are mismatch. Assertion
is also added to confirm that the values are matching.

The change is also to sync with CLD2.0.

Change-Id: I011a6f2b78a6954863c99f9d3875b2c88d2b78b1
CRs-Fixed: 2065390
2017-06-29 03:44:37 -07:00
snandini
4099f0858c Release 5.2.0.32E
Release 5.2.0.32E

Change-Id: Ie43963e6248f2eb66523c4abed24b5c8d96fa4b4
CRs-Fixed: 774533
2017-06-29 01:49:51 -07:00
hqu
fd227fe3f8 qcacld-3.0: Initialize mapping from TIDs to category table
Add initialization for mapping from TIDs including extension TIDs
to category table.

The change is also to sync with CLD2.0.

Change-Id: Ie79e5420cc22f4cb3e34ceeb020f3fde8f170d4d
CRs-Fixed: 2065379
2017-06-29 01:49:50 -07:00
snandini
cf484c81fc Release 5.2.0.32D
Release 5.2.0.32D

Change-Id: I589f3f8498738bde601cc168c8b4927e24f76ace
CRs-Fixed: 774533
2017-06-28 19:28:10 -07:00
Naveen Rawat
e7e7899b29 qcacld-3.0: Initialize NDI with no protection
After VDEV_START set WMI_VDEV_PARAM_PROTECTION_MODE param to no
protection: IEEE80211_PROT_NONE. Currently NAN spec and firmware
implementation does not have a mechanism to identify when protection
is needed.

Change-Id: I5906097f44d2059e26e440d2435568ef661160bc
CRs-Fixed: 2033348
2017-06-28 19:28:09 -07:00
Naveen Rawat
4b1aab96e1 qcacld-3.0: Free gpLimRemainOnChanReq in lim_cleanup
In case remain on channel response is pending when wlan unloads, this
memory will leak. Free gpLimRemainOnChanReq memory when lim_cleanup is
called to avoid leak.

Change-Id: Ibf47bbc4b7eb5ce9509998cd40d0c3ce54e4da62
CRs-Fixed: 2051164
2017-06-28 19:28:08 -07:00
Naveen Rawat
746a90b284 qcacld-3.0: Initialize NSS to vdev_nss in roam_sync propagation
In roam sync propagation, initialise pe_session NSS to vdev_nss, which
will then later be updated as per ASSOC response frame received from
firmware. This allows roaming from 1x1 to 2x2.

Change-Id: I5260425c7bfdfaa09bac908ea7d8a89d5caa3f69
CRs-Fixed: 2058560
2017-06-28 19:28:07 -07:00
snandini
a8afd840f1 Release 5.2.0.32C
Release 5.2.0.32C

Change-Id: I5d8f848446389af75026ab2dddffe0c49d831d28
CRs-Fixed: 774533
2017-06-28 18:19:07 -07:00
Dustin Brown
732ab9c2c8 qcacld-3.0: add gEnableCckTxFirOverride ini item
When operating in an 802.11b mode, CCK TX FIR Override forces a 2x2
radio configuration into 1x for Tx and 2x for Rx (ie 1x2) for
regulatory compliance reasons. Add gEnableCckTxFirOverride to allow
this firmware feature to be enabled/disabled via ini configuration.

Change-Id: I359fc908fa27113e2500a28c343cf90dea518212
CRs-Fixed: 2062111
2017-06-28 18:19:06 -07:00
snandini
9ab8bb99a6 Release 5.2.0.32B
Release 5.2.0.32B

Change-Id: I7ec9d53a60bc23ff8fe6d2d34fad5b8c2e861610
CRs-Fixed: 774533
2017-06-28 17:33:37 -07:00
Tushnim Bhattacharyya
3d17def041 qcacld-3.0: Modify logic to associate with HT clients
Add the following rules when HT client is associating with SAP,
1.2G-AS platform: SAP associates with HT (11n) clients as 2x1 in 2G
and 2X2 in 5G.
2.Non-2G-AS platform: SAP associates with HT (11n) clients as 2X2
in 2G and 5G and async DBS scan is disabled.
3.5G-AS platform: SAP associates with HT (11n) clients as 2X2 in 2G
and 5G and async DBS scan is disabled.

Change-Id: Ia472e786cf3ffcb420aa8142a543b56f508c6b4a
CRs-Fixed: 2063482
2017-06-28 17:33:37 -07:00
Krishna Kumaar Natarajan
0517c6044b qcacld-3.0: Fix invalid challenge text sent out by SAP
Fix invalid challenge text sent out by SAP. Due to incorrect length
check, challenge text in shared key authentication is not updated
correctly resulting in STA dropping the auth response which eventually
results in connection failure.

Change-Id: I2667ee15fd18e58a48cfb6d79980a0be82ff3b6a
CRs-Fixed: 2055806
2017-06-28 11:04:55 -07:00
Krishna Kumaar Natarajan
5e0387a8a0 qcacld-3.0: Fix the value of LIM_ENCR_AUTH_BODY_LEN
Fix the value of LIM_ENCR_AUTH_BODY_LEN. Use the macros to include the
fields instead of taking the whole structure and excluding it.

Change-Id: I42e27390ddd515190970c1ee483c610377f8d697
CRs-Fixed: 2044611
2017-06-28 11:04:49 -07:00
snandini
6462ab8f88 Release 5.2.0.32A
Release 5.2.0.32A

Change-Id: Iab09a510e1939f51d777e8fa4e148e5e6f11f269
CRs-Fixed: 774533
2017-06-28 03:53:42 -07:00
Abhishek Singh
7eaf0e8528 qcacld-3.0: Use vht operation or opmode to change the VHT channel width
Even if vht operation or Opmode IE is present in beacon, HT info IE is used to
detect the channel width and set to firmware and then again vht operation or
opmode IE is used to detect and set new channel width to firmware.

So if vht operation or Opmode IE are present, use them to detect and set
new channel width.

Change-Id: Ibbb5a2c55a5f79536fe269e0b6c0f5ff2c369309
CRs-Fixed: 2067727
2017-06-28 03:53:42 -07:00
snandini
22de29ac46 Release 5.2.0.32
Release 5.2.0.32

Change-Id: I21c885a4c08174e5cad9c86f5e0d049d700818d0
CRs-Fixed: 774533
2017-06-28 01:48:47 -07:00
Ashish Kumar Dhanotiya
81e2acc6c8 qcacld-3.0: Fix out of bound read issue in get link properties
Propagatin from qcacld-2.0 to qcacld-3.0

Length of the MAC address is not checked which may cause out of bound
read issue.

To resolve this add a check for MAC address length.

CRs-Fixed: 2063980
Change-Id: I58454b84c28b157cef35984d612a9bc6fdd9ec56
2017-06-28 01:48:47 -07:00
snandini
dbf0be537d Release 5.2.0.31Z
Release 5.2.0.31Z

Change-Id: I326e6137f731e1fb25de30411eb8df1a102743d6
CRs-Fixed: 774533
2017-06-27 22:13:10 -07:00
Ravi Kumar Bokka
05c14e5c50 qcacld-3.0: Auto Detect SoC Power Collapse Failure changes
Add host support for detecting SOC power collapse failures in FW and
communicating the same to framework.

Change-Id: Icee39c896802c4d7136e0b8ef442a33feeb4799c
CRs-Fixed: 1112979
2017-06-27 22:13:09 -07:00
snandini
6bd6193be7 Release 5.2.0.31Y
Release 5.2.0.31Y

Change-Id: Ifb4ede70eaef1388082ff9fdc44792066e47d41a
CRs-Fixed: 774533
2017-06-27 05:34:17 -07:00
Nachiket Kukade
c9045fedd0 qcacld-3.0: Ignore address change requests when interface is down
In some cases kernel incorrectly forwards the address change request
down to the driver even when interface is down. Driver tries to get
the session pointer from mac context and ends up crashing due to NULL
pointer dereference.
Ignore address change requests when interface is down.

CRs-Fixed: 2060889
Change-Id: I2b572c517b335856cdf2ae04433b4a48a9598572
2017-06-27 05:34:16 -07:00
snandini
17c152af70 Release 5.2.0.31X
Release 5.2.0.31X

Change-Id: Iaa901fc8bc17304ea07a47a54fcaf485d87f57d4
CRs-Fixed: 774533
2017-06-27 01:40:21 -07:00
bings
75be2d0a45 qcacld-3.0: Fix crash caused by sdio ramdump allocation
For TF sdio chip with platform driver, ramdump is
configured in platform driver. Driver can get the
virtual memory, but it can't call ioremap again.

If there is a platform driver, ramdump should be
allocated in platform driver, and if there is no
platform driver, ramdump should be allocated in
driver.

CRs-Fixed: 2066529
Change-Id: Ia2a32a4895f354e365522a30bbfac949ccb7a391
2017-06-27 01:40:21 -07:00
snandini
d2eee305f4 Release 5.2.0.31W
Release 5.2.0.31W

Change-Id: I6876e41e668be3d4a97396dfa9fd69a968b19f6f
CRs-Fixed: 774533
2017-06-26 22:12:49 -07:00
Abhishek Singh
7889a7e84e qcacld-3.0: Do not change channel BW if channel is 0 in HT info
Do not change channel BW if channel is 0 in HT info, As this will
cause invalid channel and phymode sent to firmware and result into
crash.

Change-Id: Ia629314b9ced299afa5d89092d0a9fc5c7cb6b4c
CRs-Fixed: 2065143
2017-06-26 22:12:49 -07:00
snandini
d64296923d Release 5.2.0.31V
Release 5.2.0.31V

Change-Id: I5e35f76b085fd879c3191005c5e9499835af5610
CRs-Fixed: 774533
2017-06-26 18:24:08 -07:00
Zhu Jianmin
ded9d2dc57 qcacld-3.0: Prevent memory issue with more check
Add session_id range check etc

Change-Id: I749076a5f060873702b42ac4908e3220e805c349
CRs-Fixed: 2061117
2017-06-26 18:24:08 -07:00
snandini
70ac723588 Release 5.2.0.31U
Release 5.2.0.31U

Change-Id: Ibb265ab3bfbdfdab88308ba1e4857631dab453b0
CRs-Fixed: 774533
2017-06-26 11:58:01 -07:00
Deepak Dhamdhere
828f189328 qcacld-3.0: Add support for PMKID modes of PMK caching and OKC
Convert the boolean variables used for tracking okc_enable into
separate bit flags for OKC and PMK caching. Firmware will also
add support for bitwise enablement of OKC and PMK caching in 802.11i
configuration part of RSO command.

CRs-Fixed: 2004963
Change-Id: Ib2fcdc6318adb488eca5cf47b2b59541020e6009
2017-06-26 11:58:01 -07:00
snandini
5ccd060f25 Release 5.2.0.31T
Release 5.2.0.31T

Change-Id: I79435778f2ea0618b906ed63a98dc113a2e16e42
CRs-Fixed: 774533
2017-06-23 17:48:03 -07:00
Nachiket Kukade
4bea8b4d2b qcacld-3.0: Check on IE length to avoid buffer over-read
An incorrect IE length can overflow the remaining length variable
and make IE parsing logic perform a buffer over-read.
Check on IE length to avoid buffer over-read.

Change-Id: I20ef6a0136c7a5b602ad15a2fb725f20807b81d0
CRs-Fixed: 2052804
2017-06-23 17:48:02 -07:00
Nachiket Kukade
2f6509fce7 qcacld-3.0: Add maximum bound check on WPA RSN IE length
WPA RSN IE is copied from source without a check on the given IE length.
A malicious IE length can cause buffer overflow.
Add maximum bound check on WPA RSN IE length.

Change-Id: Id159d307e8f9c1de720d4553a7c29f23cbd28571
CRs-Fixed: 2052791
2017-06-23 17:48:01 -07:00
snandini
f1edc1a78d Release 5.2.0.31S
Release 5.2.0.31S

Change-Id: Ic22970f56649ffec2263de8324c413480a71912b
CRs-Fixed: 774533
2017-06-23 13:42:17 -07:00
lifeng
66831666b4 qcacld-3.0: Add vendor attr to get rx aggregation statistics
qcacld-2.0 to qcacld-3.0 propagation

By setting the corresponding parameters: reorder timeout and window size
to FW, the host will deliver information about aggregation of the packets
on RX to upper layer.

Change-Id: I404d56d8d9ca3e90f8d1dee28abd80d784924901
CRs-fixed: 1078111
2017-06-23 13:42:16 -07:00
snandini
1c41c55ca2 Release 5.2.0.31R
Release 5.2.0.31R

Change-Id: Ie600f63aa1860748c47d338bfe243c4b25439086
CRs-Fixed: 774533
2017-06-23 07:42:06 -07:00
Nachiket Kukade
142e996a65 qcacld-3.0: Feed retry count value to the correct category
During .set_phy_params operation, retry value for short retry
is incorrectly fed to the long retry parameter.
Only feed retry value for long retry into the long retry parameter.

Change-Id: I3e8838b9b0c21d3cbaafa3a1785dd3f793b5b372
CRs-Fixed: 2062561
2017-06-23 07:42:05 -07:00
snandini
2a41e3668e Release 5.2.0.31Q
Release 5.2.0.31Q

Change-Id: Ic2cae56551028bd41c7ea6906829ee2c69bc94d4
CRs-Fixed: 774533
2017-06-23 04:03:29 -07:00
Krunal Soni
4bfecf6e23 qcacld-3.0: Resolve compilation by protecting LFR3 feature
Few LFR3 related code checks are not protected which creates the
compilation issue on some of the platform.

Fix the compilation issue by moving LFR3 related code checks to
WLAN_FEATURE_ROAM_OFFLOAD macro.

CRs-Fixed: 2055018
Change-Id: I1ca4000c3bb15e33c2fc85f9117aa4f1ca2aeed4
2017-06-23 04:03:28 -07:00
Padma, Santhosh Kumar
03c3ad8e75 qcacld-3.0: Update dot11mode as per LFR version
Currently driver calculates dot11mode in CSR for LFR-2.0, saves in
global variable pFTPreAuthReq of PE context and later uses that in
lim. But for LFR-3.0, pFTPreAuthReq of PE context is NULL which
can result in NULL pointer access. Add a check for pFTPreAuthReq
to fix this issue.

Change-Id: Ia5cfbca912f9870b9ec7b33a015f4925022f448a
CRs-Fixed: 2055018
2017-06-23 04:03:27 -07:00
snandini
af4ea2a0bc Release 5.2.0.31P
Release 5.2.0.31P

Change-Id: I5d91b4afb430d46b31ef45592937cbeacd08bd9f
CRs-Fixed: 774533
2017-06-23 02:12:35 -07:00
Sravan Kumar Kairam
76ab2662f5 qcacld-3.0: Free allocated memory before return
Currently in function ol_copy_ramdump dynamically allocated memory
is not freed before return in error condition. In this change free
memory before return.

Change-Id: Ie75d69a1716c3598e0123064a6ee522076748f7d
CRs-Fixed: 2044460
2017-06-23 02:12:34 -07:00
snandini
f821fbaa81 Release 5.2.0.31O
Release 5.2.0.31O

Change-Id: Ie0085c4c8f93799f5a721482e8a8c71366c350ba
CRs-Fixed: 774533
2017-06-22 20:07:47 -07:00
Manjunathappa Prakash
dab74fa881 qcacld-3.0: add ini option to enable orphan Tx packets
Add INI config option to enable orphaning of Tx packets.
Default is to disable orphaning.

Change-Id: Ib855d7ebf56fd3def1a2674091a188e8ecd729f2
CRs-Fixed: 2064079
2017-06-22 16:53:19 -07:00
snandini
44e17bcccd Release 5.2.0.31N
Release 5.2.0.31N

Change-Id: I3b0a6809809fce735d0d1ad5ce06f3f4e0558fa7
CRs-Fixed: 774533
2017-06-22 13:38:00 -07:00
Naveen Rawat
90ecd2cf3c qcacld-3.0: Set NSS for STA as intersection of self and AP
Host send self nss capability in start Vdev and thus firmware
start SMPS frames during DBS even if peer is 1x1 capable.

To fix set NSS for STA as intersection of self and AP.

Change-Id: I38eeade0456f65f27b335f4ee14db0472507feb0
CRs-Fixed: 2056290
2017-06-22 13:37:59 -07:00
Srinivas Girigowda
af0173e171 qcacld-3.0: Fix compile warnings and reduce log levels
Fix compile warnings and reduce log levels.

Change-Id: Ic4ed8c3f46da2ae1514e2bd6792638b62f7f2397
CRs-Fixed: 2024274
2017-06-22 13:37:56 -07:00
Naveen Rawat
c921c7b2cc qcacld-3.0: Add check for set_ft_ies buffer length
Add check for buffer length in function sme_set_ft_ies.

Change-Id: I7adc56e23316c0ceb193a5bdf8c4c0b5f4fbd20a
CRs-Fixed: 2055659
2017-06-22 13:37:55 -07:00
snandini
d6f9ed18a0 Release 5.2.0.31M
Release 5.2.0.31M

Change-Id: I26b394d981cbffb7c0837e24b81db8d081bb0075
CRs-Fixed: 774533
2017-06-22 11:47:53 -07:00
Krishna Kumaar Natarajan
fc8c36309a qcacld-3.0: Fix memory leak due to WMA_SET_LINK_STATE
Fix memory leak due to WMA_SET_LINK_STATE. There are potential memory leak
on lim_set_link_state() failure and vdev target request message cleanup.

Change-Id: I873693f9d51f3702e01aec0d9df5c218bdb70f05
CRs-Fixed: 2051977
2017-06-22 11:47:53 -07:00
Varun Reddy Yeturu
9c1f0dc053 qcacld-3.0: Fix the return type in __wlan_hdd_cfg80211_ll_stats_get
Fix the return data type in __wlan_hdd_cfg80211_ll_stats_get from
unsigned long to int type.

Change-Id: Ia51056adbf09fe6a2cb0d33337b4d9107c4f146d
CRs-Fixed: 2051378
2017-06-22 11:47:52 -07:00
Varun Reddy Yeturu
7d47259cff qcacld-3.0: Change return status from unsigned to signed
Change the return status type as the expected value could
be either a negative or Zero based on failure or success
respectively in the routine wlan_hdd_ll_stats_get()

Change-Id: Ieaff1928f081fe28060b2c40f7e546c51d03a7bc
CRs-Fixed: 2036663
2017-06-22 11:47:50 -07:00
Krishna Kumaar Natarajan
c7e2bb7c83 qcacld-3.0: Add support to read link layer stats via debugfs
Add support to read link layer stats via debugfs. This change set
will issue get_req and store the received stats response is debugfs
entry.

Change-Id: If3af9f0a37283583ff011e35c7275a329a6e175d
CRs-Fixed: 2018087
2017-06-22 11:47:49 -07:00
Krishna Kumaar Natarajan
7bff29b84a qcacld-3.0: Add support to handle updated link layer stats
Add support to parse and store additional link layer stats
included as part of radio stats and interface stats.

Change-Id: Idbefa508f5e79221c3d7598e6b120454b56e2423
CRs-Fixed: 2018087
2017-06-22 11:47:47 -07:00
snandini
753b136ff1 Release 5.2.0.31L
Release 5.2.0.31L

Change-Id: I89621f79151a9c342db8c0117df4483c0aef0584
CRs-Fixed: 774533
2017-06-22 06:35:05 -07:00
Sravan Kumar Kairam
645749571d qcacld-3.0: Deinitialize runtime suspend context before hif close
Currently runtime suspend context deinit is done after hif close which
leads to memory leak. In this change deinitialize the runtime suspend
context before hif close.

Change-Id: Idc99f77b09a25a53e10b4e92391060670bb9bb7e
CRs-Fixed: 2065219
2017-06-22 06:35:04 -07:00
snandini
d7fb2d3ef3 Release 5.2.0.31K
Release 5.2.0.31K

Change-Id: I18776e62aa96357ad48435f55dd47102caffce88
CRs-Fixed: 774533
2017-06-22 05:53:01 -07:00
Sravan Kumar Kairam
71121713be qcacld-3.0: At interface down disconnect IPA WDI pipes
Currently IPA WDI TX and RX pipes are set up when the interface is
up but during interface down there is no disconnect of the IPA WDI
pipes. So again when interface up after interface down IPA driver
returns error that endpoints are already have allocated. As a result
the TX and RX WDI pipe handle values will be zero which is invalid.

In this change disconnect WDI pipes at interface down instead of
during wlan exit or ssr deinit.

Change-Id: I1fb7520467f1b5a6c43bab3b16b002fa0f534d75
CRs-fixed: 2033329
2017-06-22 05:53:00 -07:00
snandini
67141e8589 Release 5.2.0.31J
Release 5.2.0.31J

Change-Id: I55d9fe1f3332732069e13674120bff37f9c762db
CRs-Fixed: 774533
2017-06-22 04:38:32 -07:00
Zhu Jianmin
04392c461d qcacld-3.0: Optimize ping latency
If tx frame is ICMP packet, disable bmps for N seconds to avoid
latency of waking up from bmps.

Change-Id: I91f7748bfca81524637e0e4cc39ace5abf53f7dc
CRs-Fixed: 2044602
2017-06-22 04:38:32 -07:00
snandini
b737b9d717 Release 5.2.0.31I
Release 5.2.0.31I

Change-Id: I2cf9644dbbdd9855e434d1d2605d1fadbf174369
CRs-Fixed: 774533
2017-06-22 03:58:06 -07:00
Selvaraj, Sridhar
0641fabce5 qcacld-3.0: Add INI to configure min rssi for roamable AP in PER Roam
Add INI "gper_min_rssi_threshold_for_roam" to configure the minimum
RSSI required for AP candidate to roam in PER based roaming.

Change-Id: I5549c44d2dffb20e92923d3b62e08b94b7a87c9d
CRs-Fixed: 2048414
2017-06-22 03:58:05 -07:00
snandini
d103458c97 Release 5.2.0.31H
Release 5.2.0.31H

Change-Id: I5b5cff9e931754125673f908914b24080b473da1
CRs-Fixed: 774533
2017-06-22 02:02:33 -07:00
Selvaraj, Sridhar
81ab80dfb1 qcacld-3.0: Keep bssDescription at the end of tSirSmeJoinReq struct
Move bssDescription to the end of tSirSmeJoinReq since bssDescription
has ieFields at its end which would be corrupted if we dont keep it
at the end of bssDescription. This results in not detecting the IE's
properly after assoc response processing, not setting wpa_rsn flag
in PEER_ASSOC_CMD to fw. The subsequent LFR3 roam if happens in fw
fails because of this.

Keep bssDescription at the end of tSirSmeJoinReq struct and other
structs where bssDescription is used.

Change-Id: I7096f7da0a475b0c63078f3c77fba240a41dfb00
CRs-Fixed: 2058223
2017-06-21 22:33:33 -07:00
Selvaraj, Sridhar
99edbc3012 qcacld-3.0: Add OSEN IE to Assoc request frame parser
With I57f6319cecdf10e08047b510321b885c3cd711b5, adding IE's to
assoc request is modified to honour the spec.i.e. additional IE's
from HDD is not directly appended at the end of the association
request frame. parser code checks if the additional IE is defined
for assoc request frame parser and fills it accordingly as per the
IE order spec mandates. OSEN IE is not defined in assoc request
frame parser which leads to not adding the same to assoc request.

Add OSEN IE to assoc request frame parser.

Change-Id: I3b6e10128bfa2c63cc8d98e9727b99c496cb5b2c
CRs-Fixed: 2056201
2017-06-22 10:49:59 +05:30