Commit Graph

5546 Commits

Author SHA1 Message Date
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
snandini
a9c2a5260a Release 5.2.0.31B
Release 5.2.0.31B

Change-Id: I7a16254be61fc889fb1bf6ce4da06747d098e0f4
CRs-Fixed: 774533
2017-06-21 05:56:14 -07:00
Sandeep Puligilla
dbdf6c93c1 qcacld-3.0: Remove wext support for scan commands
Scan results obtained through wext interface is
incomplete due to limitation on number of bytes
passed through wext interface.
Wext scan command is replaced with NL scan.

Remove code references related to wext scan
command support.

Change-Id: I05ccc13d1b658e62b19a389e6a480707b5c446b9
CRs-Fixed: 2063667
2017-06-21 05:56:14 -07:00
Sandeep Puligilla
994f620e23 qcacld-3.0: Cleanup legacy scan in SAP module
Cleanup legacy scan code in the SAP module.

Change-Id: Ifdb2575727c5c52a2b09c03d8bde43e5fd8fb910
CRs-Fixed: 2063667
2017-06-21 05:56:13 -07:00
snandini
f77860aaa2 Release 5.2.0.31A
Release 5.2.0.31A

Change-Id: Ic1e2c4a4684bae1fad56fe5c9db7b92e0bbf523e
CRs-Fixed: 774533
2017-06-21 03:41:53 -07:00
Krishna Kumaar Natarajan
b9e1d71b3f qcacld-3.0: Use CDP API in sme_open_session
Use CDP API in sme_open_session() instead of ol_txrx API.
Using ol_txrx API will lead to unexpected behavior.

Change-Id: I7012fd1904c730fb1074c262cb096d0cd8c20362
CRs-Fixed: 2064278
2017-06-21 03:41:53 -07:00
snandini
8044597bcd Release 5.2.0.31
Release 5.2.0.31

Change-Id: I3dc598a1f2bece7f17f70c81775f7f8383a01bdb
CRs-Fixed: 774533
2017-06-20 22:32:07 -07:00
Nachiket Kukade
348ede7be3 qcacld-3.0: Inform bss even when start_modules is in progress
While start_modules is in progress, wlan_hdd_validate_context
returns error from inform bss. This results in not forwarding
the frames to the upper layer as well as log flooding.

Don't return error from inform bss if start_modules is in progress.

Change-Id: I7837ef2566eaf3f0b7387e118ff2c46e6b617670
CRs-Fixed: 2037694
2017-06-20 22:32:07 -07:00
snandini
e7b1fbf8ec Release 5.2.0.30Z
Release 5.2.0.30Z

Change-Id: Ia11c320c499ccb54940a93c59205e94d8632e9ce
CRs-Fixed: 774533
2017-06-20 21:34:20 -07:00
hqu
6153382fae qcacld-3.0: Distinguish wlan target defaut config in wlan_hdd_main.h
Use macro CONFIG_HL_SUPPORT to do conditional compilation in
wlan_hdd_main.h, it can distinguish HL target from other target
so that it will use different wlan target defaut config.

Change-Id: Ia33cd336de34c17b73909b671c83e304def3d74b
CRs-Fixed: 2063356
2017-06-20 21:34:20 -07:00
snandini
17e55d78eb Release 5.2.0.30Y
Release 5.2.0.30Y

Change-Id: If92920f759c7bf8d86e313007bf4e8b2377305f0
CRs-Fixed: 774533
2017-06-20 20:11:35 -07:00
Jeff Johnson
a6e61b197b qcacld-3.0: Avoid buffer overread when parsing PNO commands
There are currently three issues which can result in a buffer overread
when processing PNO vendor commands:

1) __wlan_hdd_cfg80211_set_passpoint_list() specifies the wrong policy
   when invoking nla_parse().
2) hdd_extscan_passpoint_fill_network_list() does not specify a policy
   when invoking nla_parse().
3) __wlan_hdd_cfg80211_set_epno_list() specifies a policy but not all
   of the attributes that are parsed are present in the policy.

To prevent buffer overread:
1) Update __wlan_hdd_cfg80211_set_passpoint_list() and
   hdd_extscan_passpoint_fill_network_list() to use the policy
   wlan_hdd_pno_config_policy.
2) Update wlan_hdd_pno_config_policy to contain all the fixed-length
   attributes needed by __wlan_hdd_cfg80211_set_passpoint_list(),
   hdd_extscan_passpoint_fill_network_list(), and
   __wlan_hdd_cfg80211_set_epno_list().

Change-Id: I4a20e77ce87967ae78323b83a2aa9085fed2647f
CRs-Fixed: 2054770
2017-06-20 20:11:35 -07:00
snandini
8c251e148e Release 5.2.0.30X
Release 5.2.0.30X

Change-Id: I9e1d5527cfe84d96e722de6487a7d043f4a541e7
CRs-Fixed: 774533
2017-06-20 19:36:18 -07:00
Nachiket Kukade
d45ab8c7c3 qcacld-3.0: Release spinlock before returning from error
While freeing ROC request nodes from the linked list a spinlock is
acquired. But it is not released if the API to remove node returns
failure. This will end up in a deadlock.

Release spinlock before returning from error.

Change-Id: I30281cc358b4827e59325554859c3dcffe6292b0
CRs-Fixed: 2042713
2017-06-20 19:36:18 -07:00
wadesong
1885d2c685 qcacld-3.0: Add ipa_uc_rx_ring_elem_t for 32-bit platform
ipa_uc_rx_ring_elem_t structure is platform specific and current
definition cannot be used on 32-bit ARM platform where IPA 3.5
is attached. Add IPA 3.5 and 32-bit ARM compatible structure to
avoid IPA crash when data traffic is running

Change-Id: Ia5c141c9405675a64f59ba4c09f1ffd911158c9b
CRs-Fixed: 2046905
2017-06-20 19:36:16 -07:00
snandini
28fbb56b5d Release 5.2.0.30W
Release 5.2.0.30W

Change-Id: I5647eba9ceffcccc2cfb0150bca92f3ff33ac712
CRs-Fixed: 774533
2017-06-20 17:52:13 -07:00
Kapil Gupta
63e7528680 qcacld-3.0: Correct vendor attribute for external ACS
Add changes to correct vendor attribute to support external
ACS as defined in qca-vendor-copy.h

Change-Id: Ia09638f59aeea4d87bbd6d4f9ab03210a213a132
CRs-Fixed: 2049157
2017-06-20 17:52:13 -07:00
snandini
321ceb6f1f Release 5.2.0.30V
Release 5.2.0.30V

Change-Id: Ic1f9d47c44de8a8a51c48af0ce39ca6e977d8592
CRs-Fixed: 774533
2017-06-20 16:17:39 -07:00
Abhishek Singh
533c9da880 qcacld-3.0: Wait for roam to get stopped during disconnect
In case roaming was in progress when hdd_disconnect was called, avoid
defer disconnect as that will call hdd api in mcthread which waits on
event for about 5 seconds thus blocking everything. Also defer disconnect
makes supplicant and driver state go out of sync. Rather wait in hdd
for roaming to complete and then issue disconnect keeping state simple
and clean

Change-Id: I1b971226187892f32eb493047c13353bb0d1c867
CRs-Fixed: 2042394
2017-06-20 16:17:39 -07:00
snandini
45047763df Release 5.2.0.30U
Release 5.2.0.30U

Change-Id: I6f470e32f20991899136cfd2f76ddeceed3197fc
CRs-Fixed: 774533
2017-06-20 14:06:39 -07:00
bings
bdcd4a2f94 qcacld-3.0: Fix cfg80211_get_bss calling when IEEE80211_PRIVACY defined
When IEEE80211_PRIVACY is defined, cfg80211_get_bss should be called with
IEEE80211_BSS_TYPE_ESS as ieee80211_bss_type and IEEE80211_PRIVACY_ANY as
ieee80211_privacy

Change-Id: I28154ab45a7143f485824d6884c630315d47d0c7
CRs-Fixed: 2063345
2017-06-20 14:06:39 -07:00
snandini
8b7b764315 Release 5.2.0.30T
Release 5.2.0.30T

Change-Id: I6561f9be97e699594967d1d4790923dffb92f69e
CRs-Fixed: 774533
2017-06-20 05:51:16 -07:00
Ashish Kumar Dhanotiya
470af29603 qcacld-3.0: Add ini support to disable scan in connected state
Currently there is no ini parameter to disable the scanning if
the device is already connected.

Add ini parameter to support this feature.

Change-Id: I0f57be99ea335823c30a058d166b126d787e4461
CRs-Fixed: 2054521
2017-06-20 05:51:16 -07:00
snandini
937e8e6864 Release 5.2.0.30S
Release 5.2.0.30S

Change-Id: Idb5cac4d05f3e6e08a734f83c97b1dcac02e7266
CRs-Fixed: 774533
2017-06-20 05:05:59 -07:00
Abhishek Singh
154637ac11 qcacld-3.0: Post Set key with high priority to lim
If pe queue contain management frame and set key cmd is sent as low
priority the set key may timeout.

Thus to fix this post set key with high priority to lim,
so that it can be processed in priority.

Change-Id: I31e346da6662ab56f268f94260ed0f169b8f182b
CRs-Fixed: 2056378
2017-06-20 05:05:59 -07:00
snandini
8074370d08 Release 5.2.0.30R
Release 5.2.0.30R

Change-Id: I9a3ae9ca237c0e9d25f264cb5b648b5600b26dd3
CRs-Fixed: 774533
2017-06-20 04:11:09 -07:00