Commit Graph

5507 Commits

Author SHA1 Message Date
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
811c8d58a2 qcacld-3.0: Fix Kbuild to enable packet log
Currently, the CONFIG_FEATURE_PKTLOG is not enabled for
statically loaded driver.
The reason for that is enabling of this macro is conditionally
done under KERNEL_BUILD=0.

This commit enables the macro conditionally for
all values of KERNEL_BUILD

Change-Id: I6adc090545589df1a6a91ecc12246daeedec2ebd
CRs-Fixed: 2058745
2017-06-22 13:37:58 -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
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