Commit Graph

5230 Commits

Author SHA1 Message Date
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
snandini
8f0fad1653 Release 5.2.0.31G
Release 5.2.0.31G

Change-Id: I9840336c7406ab47bee14e2a5be494399f510ee4
CRs-Fixed: 774533
2017-06-21 21:31:35 -07:00
Ajit Pal Singh
64aff0c8a9 qcacld-3.0: Reject connection if channel not ok for DNBS
Reject connection in csr_roam_connect(), if the BSS entry selected
from the driver cached scan results, has a channel which is not OK for
Do_Not_Break_Stream.

Change-Id: Icf725361382bff7dad80138cfc1b51bafa548afa
CRs-Fixed: 2064380
2017-06-21 21:31:34 -07:00
snandini
4539f81564 Release 5.2.0.31F
Release 5.2.0.31F

Change-Id: I6de6ee0ea73630997ca53e66fd8d7f5ed0d428e3
CRs-Fixed: 774533
2017-06-21 16:06:31 -07:00
Jeff Johnson
79f6a60608 qcacld-3.0: Apply policy to fine time measurement
Currently QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT is not
properly represented in the wlan_hdd_wifi_config_policy table, so add
a proper initializer.

Change-Id: I95ba66337c30cae67b23c9942b9360522ad60df0
CRs-Fixed: 2061978
2017-06-21 16:06:31 -07:00
Yuanyuan Liu
f8fe4bc8c8 qcacld-3.0: Send fw log mode when wlan interface is up
Send fw log mode when wlan interface is up as this info will get
lost when wlan fw is unloaded.

CRs-Fixed: 2057979
Change-Id: Ie609ef15aaa242bdf98f37b6aa04b8fbf7c38be8
2017-06-21 16:06:29 -07:00
snandini
6d338d7aae Release 5.2.0.31E
Release 5.2.0.31E

Change-Id: I314d393ef2cbc082b1b1ab78bb1f68986d7a2c72
CRs-Fixed: 774533
2017-06-21 13:52:15 -07:00
Yun Park
034e9786ef qcacld-3.0: Fix Tx comp ring size to total byte counts for WDI Tx pipe
As IPA requires total byte counts of Tx comp ring for
ipa_connect_wdi_pipe, fix to pass the total byte counts of the ring.

Change-Id: I6150115ad2fdf3635ac7a84f592e4545f6dc934a
CRs-Fixed: 1114930
2017-06-21 13:52:15 -07:00
SaidiReddy Yenuga
6f4763de68 qcacld-3.0: validate NLA attr in wlan_hdd_cfg80211_extscan_set_significant_change
NLA attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM
used without validation.

validate NLA attribute.

CRs-Fixed: 2025678
Change-Id: Iee9a8f91cc1b5a6c76c5abaef48c0fa29110062e
2017-06-21 13:52:13 -07:00
snandini
725fd4b449 Release 5.2.0.31D
Release 5.2.0.31D

Change-Id: I363d189f724e47472ce52c3caf93a8d02159eb09
CRs-Fixed: 774533
2017-06-21 11:47:03 -07:00
SaidiReddy Yenuga
a191738196 qcacld-3.0: Validate NLA attr in bssid extscan hotlist API
NLA attribute QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM
used without validation.

validate NLA attribute.

CRs-Fixed: 2025669
Change-Id: I71f7452f0c7a1947326aefc2348b8f72b48f2895
2017-06-21 11:47:02 -07:00
Naveen Rawat
d85a390de4 qcacld-3.0: Add bound check before writing to channel list
In function rrm_process_beacon_report_req, add bound check before
writing to channel list which is of fixed size.

Change-Id: I3c80974bba84a96f7b85e4ce62bbb01c23b4babf
CRs-Fixed: 2060138
2017-06-21 11:47:01 -07:00
snandini
70ebe590f2 Release 5.2.0.31C
Release 5.2.0.31C

Change-Id: Iea3e5ba059ae9a4b8177c393c72de1a9989509fe
CRs-Fixed: 774533
2017-06-21 08:38:16 -07:00
Ashish Kumar Dhanotiya
ff252beffa qcacld-3.0: Resolve out of bound memory access while processing VSIEs
Currently elem_len is not checked against WPS_OUI_TYPE_SIZE
before it uses the buffer for memcmp, this may cause the buffer
overread.

To fix this add the proper comparision logic before the API uses
the buffer.

Change-Id: I9ba63543a529fb88932500be39045fcc19509863
CRs-Fixed: 2061159
2017-06-21 08:38:16 -07:00