Commit Graph

6967 Commits

Author SHA1 Message Date
Vignesh Viswanathan
a3963373f6 qcacld-3.0: Avoid integer overflow in wma_ndp_end_indication_event_handler
In function wma_ndp_end_indication_event_handler, num_ndp_end_indication_list
from the fw is used to calculate buf_size which is in turn used to malloc.
This could lead to potential integer overflow if num_ndp_end_indication_list
is a very high value.

Add check to validate num_ndp_end_indication_list does not exceed the max
message size from firmware.

Change-Id: Icbb763bfc14ec0ef8424cab50afa5c6826fd3c60
CRs-Fixed: 2114255
2017-10-12 14:02:42 -07:00
Padma, Santhosh Kumar
1a99fe0842 Revert "qcacld-3.0: Logical AND current UAPSD bitmask with ADDTS rsp values"
Set uapsd_delivery_mask if either static mask uapsd_per_ac_bit_mask is
set or dynamic mask uapsd_per_ac_delivery_enable_mask is set. Both static
and dynamic masks need not to be set to enable uapsd_delivery_mask.
Similar logic is applicable as well for uapsd_trigger_mask. Hence, revert
commit 2560111dd2.

Change-Id: I743d11617e33e7a358473eeab4455339fe1bbd98
CRs-Fixed: 2123812
2017-10-12 14:02:37 -07:00
Mukul Sharma
07bd875c18 qcacld-3.0: Acquire wakelock until change iface timer expires
Currently, when wifi is disabled from UI, and if the device goes
to suspend before the interface change timer expires, then until
the next APPS wakeup wifi remains enabled hence power numbers are
high.
As a part of fix, Host acquire wakelock when it start change
interface timer.

Change-Id: I41662596725315a6cfe185ee23ae889b69938e0b
CRs-Fixed: 2091154
2017-10-12 14:02:31 -07:00
Sravan Kumar Kairam
6b727a4ca7 qcacld-3.0: Implement nbuf alloc fail replenish timer
Implement nbuf alloc fail replenish timer which starts when
there is an nbuf allocation failure and stops when there is
an nbuf allocation success with in the timer expiry duration.

Change-Id: Ie956ea144dec4323664632d00bb8f0f82ba22439
CRs-Fixed: 2033944
2017-10-12 14:02:26 -07:00
Vignesh Viswanathan
18827b06d7 qcacld-3.0: Add check for vdev_id in wma_p2p_lo_event_handler
Currently fix_param->vdev_id, recevied from the FW, is directly used
to refer to wma->interfaces without validating if the vdev_id is valid.

Add sanity check to make sure vdev_id is less than max_bssid before
using it.

Change-Id: I92743589e0333449c39e148b37d200cac2cdb817
CRs-Fixed: 2119434
2017-10-12 14:02:19 -07:00
Himanshu Agarwal
a1539d3e22 qcacld-3.0: Add sanity check for num_hw_modes and num_phy
Add sanity check for num_hw_modes and num_phy in wma_populate_soc_caps()
for WMI_SERVICE_READY_EXT_EVENTID.

Change-Id: I023d737449283f9ac092d278bde016b208b2c891
CRs-Fixed: 2119887
2017-10-12 14:02:13 -07:00
Himanshu Agarwal
8bcec57472 qcacld-3.0: Add INI support for best candidate algo and RSSI scoring
1) Currently all the parameter to decide best candidate are chosen
   as by default.
   Add INI support for those parameters to change values on basis
   of performance.
2) At the time of calculating best candidate score, rssi consider
   bucket size, good rssi, bad rssi, good rssi percentage from total
   rssi percentage, bad rssi percentage from total percentage.
   Configure these all params from ini.

Change-Id: I808a40486473fcbb161c12fbd369b3b846beb8c2
CRs-Fixed: 2121735
2017-10-12 14:02:08 -07:00
Vignesh Viswanathan
37794ae6dd qcacld-3.0: Fix potential buffer overwrite in wma_unified_link_iface_stats_event_handler
In function wma_unified_link_iface_stats_event_handler, num_ac is received
from the firmware and is used in the loop to populate values into results.
However the memory for results is allocated only for WIFI_AC_MAX and a
buffer overflow will occur of num_ac is greater than WIFI_AC_MAX.

Add checks to make sure num_ac is not greater than WIFI_AC_MAX and
num_offload_stats is not greater than WMI_OFFLOAD_STATS_TYPE_MAX.

Change-Id: Ife8b1d19aa853f85f4fad82d5791e49a8c892ca4
CRs-Fixed: 2114756
2017-10-12 14:02:02 -07:00
snandini
de7e6e987d Release 5.2.0.48N
Release 5.2.0.48N

Change-Id: I5c21b8bdc5e69b3879a037e3214afd15d1413f64
CRs-Fixed: 774533
2017-10-12 14:01:57 -07:00
Vignesh Viswanathan
832084b9e7 qcacld-3.0: Remove assert in wma_get_ll_stats_ext_buf
Assert added as part of I2689873c2c5e63c83e5059563662c0c69dc659fc
in wma_get_ll_stats_ext_buf is not required as it causes a stack
trace exposing further security issues.

Remove the assert in wma_get_ll_stats_ext_buf

Change-Id: I92a5eb1b287e61c7f2cc9d6dba92446719c3c6b2
CRs-Fixed: 2115112
2017-10-12 14:01:53 -07:00
snandini
3917b566c7 Release 5.2.0.48M
Release 5.2.0.48M

Change-Id: I1214759e02316ed0542b245a3229f08e6b2c9ac6
CRs-Fixed: 774533
2017-10-12 14:01:48 -07:00
tfyu
5f01db27c1 qcacld-3.0: Enable the TX orphan for TCP packets by gEnableTxOrphan
Enable the TX orphan for TCP packets by gEnableTxOrphan if TX flow control
is not enabled, such as SCC mode.

Change-Id: I0f3bc41bb22f8db10614d4833558caa664e52517
CRs-Fixed: 2123892
2017-10-12 14:01:42 -07:00
snandini
a2e3d2ca79 Release 5.2.0.48L
Release 5.2.0.48L

Change-Id: I0f0a63f9f9a72080d5c9188cadc7d9354a2372e4
CRs-Fixed: 774533
2017-10-12 14:01:37 -07:00
Ravi Kumar Bokka
c20393f2c2 qcacld-3.0: Fix for set11Dstate ioctl
In present code, by default csr_init11d_info() function return failure status.
Due to wrong return status, ioctl (set11Dstate) get failed.

correct return status in csr_init11d_info function.

Change-Id: I40f130454d259cbc8a22f16e27c2c1a9e7c10b07
CRs-Fixed: 1105989
2017-10-12 14:01:32 -07:00
snandini
3064f24f25 Release 5.2.0.48K
Release 5.2.0.48K

Change-Id: I5458daf04400a7c416fd1297e2216222187b24e8
CRs-Fixed: 774533
2017-10-12 14:01:27 -07:00
Jeff Johnson
435e1b8760 qcacld-3.0: Fix trivial long lines in wlan_hdd_assoc.c
Checkpatch has detected multiple instances of "line over 80
characters." Some of them are trivial, so fix them.

Note that there are some instances that can only be addressed by
refactoring the code, and those will be addressed later.

Change-Id: I5d23b8cc7643d83a349532e3f2d32cd27b5dca95
CRs-Fixed: 2122896
2017-10-12 14:01:23 -07:00
Jeff Johnson
21d63bbde7 qcacld-3.0: Fix whitespace issues in WE_UNIT_TEST_CMD handler
Change "qcacld-3.0: Provide SME API to send unit test command to FW"
introduced two whitespace-related issues flagged by checkpatch:
- WARNING: suspect code indent for conditional statements (16, 20)
- WARNING: Statements should start on a tabstop

Fix those issues, as well as update an error message to align with the
new design.

Change-Id: Ic58c3330f73c838ba100e7621ce23eadc3f0d7b0
CRs-Fixed: 2122894
2017-10-12 14:01:19 -07:00
Jeff Johnson
a5fb21806a qcacld-3.0: Remove unnecessary else in hdd_indicate_tsf_internal()
Checkpatch has detected one instance of "else is not generally useful
after a break or return" in hdd_indicate_tsf_internal(), so fix it.

Change-Id: I6aa92cc7966795e719eb5824a3a9354928e79590
CRs-Fixed: 2122872
2017-10-12 14:01:14 -07:00
Jeff Johnson
d6d1f63d73 qcacld-3.0: Fix long lines in wlan_hdd_power.c
Checkpatch has detected multiple instances of "line over 80
characters" so fix them. Also remove an obsolete extern to
eliminate an instance of "externs should be avoided in .c files."

Change-Id: Ic6b2082c2df0ffb20ce10c3c3a51c2fbebe849c7
CRs-Fixed: 2122873
2017-10-12 14:01:10 -07:00
Jeff Johnson
4929cd9a2d qcacld-3.0: Fix long lines in wlan_hdd_ipa.c
Checkpatch has detected multiple instances of "line over 80
characters" so fix them. Also fix one instance of "else is not
generally useful after a break or return."

Change-Id: Ifb03d4d1399a53fa69f03ce2f77ccfca3929d1cc
CRs-Fixed: 2122822
2017-10-12 14:01:05 -07:00
Jeff Johnson
6dff3eeb62 qcacld-3.0: Fix long lines in wlan_hdd_main.h
Checkpatch has detected instances of "line over 80 characters" so fix
them.

Change-Id: Ia4241c997a01979bd4e5aac32920f780641bcb01
CRs-Fixed: 2122693
2017-10-12 14:01:01 -07:00
Jeff Johnson
11b4c32fd0 qcacld-3.0: Fix long lines in wlan_hdd_nan_datapath.c
Checkpatch has detected instances of "line over 80 characters" so
fix them.

Change-Id: Id6cae4045104ed34cba84ef88b518e4b1da474f5
CRs-Fixed: 2122615
2017-10-12 14:00:57 -07:00
Jeff Johnson
2381294829 qcacld-3.0: Rename sap_restart_chan_switch_cb()
Functions exported by HDD should have an HDD prefix so rename
sap_restart_chan_switch_cb() since it is exported by HDD.

Change-Id: I7b871774bb537e60e2992d471ab57b342246dd50
CRs-Fixed: 2122575
2017-10-12 14:00:53 -07:00
Jeff Johnson
4ba73cb1f1 qcacld-3.0: hdd: Replace typedef tSirBssDescription
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirBssDescription typedef does
not meet any of those criteria, so replace references to it within HDD
with a reference to the underlying struct.

Change-Id: I13938fc15841986e9957f4774fbcfd035f734ccd
CRs-Fixed: 2122558
2017-10-12 14:00:49 -07:00
Jeff Johnson
38e38a8483 qcacld-3.0: Remove duplicate GET_IE_LEN_IN_BSS_DESC() macros
Both HDD and SAP define GET_IE_LEN_IN_BSS_DESC() macros, but these
macros simply replicate the logic already present in the global macro
GET_IE_LEN_IN_BSS(). Therefore delete these macros, and use
GET_IE_LEN_IN_BSS() instead.

Change-Id: I431984673141715ad32ca6ea96e31722129ce929
CRs-Fixed: 2122547
2017-10-12 14:00:45 -07:00
Jeff Johnson
e58271f05c qcacld-3.0: Rename struct sSirBssDescription
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename struct sSirBssDescription to align with
the Coding Style.

Note that it will be a separate exercie to replace instances of the
tSirBssDescription and tpSirBssDescription typedefs.

Change-Id: Ia698c5290e719ac6eef22cdee56e8954e5f61146
CRs-Fixed: 2122503
2017-10-12 14:00:41 -07:00
Jeff Johnson
011c450b4a qcacld-3.0: Add support for pdev_reset ioctl
Test team requires support for pdev_reset ioctl that is present
on other devices, so add support for it.

Change-Id: I8d9b30987dfbdbc94de0a1ab2a0c686c93c7da8a
CRs-Fixed: 2122060
2017-10-12 14:00:37 -07:00
Jeff Johnson
59eb5fde86 qcacld-3.0: hdd: Fix code indentation issues
Checkpatch identified multiple indentation issues in hdd including:
- Statements should start on a tabstop
- suspect code indent for conditional statements
- labels should not be indented

Fix these issues.

(Note that there is a false positive "labels should not be indented"
in wlan_hdd_memdump.c that should not being modified)

Change-Id: I781fb05bffe6c75183bdd45d797a248d2cd06e6b
CRs-Fixed: 2121931
2017-10-12 14:00:34 -07:00
Jeff Johnson
dcf84ce461 qcacld-3.0: hdd: Fix block comment issues
Checkpatch reported multiple block comment issues in hdd including:
- Block comments use * on subsequent lines
- Block comments should align the * on each line
- Block comments use a trailing */ on a separate line

Fix those issues.

Change-Id: Ic2b74c520ffb4be1c82fad6f6bdd0a9474d4b506
CRs-Fixed: 2121930
2017-10-12 14:00:31 -07:00
Jeff Johnson
33a079296b qcacld-3.0: hdd: Remove unnecessary void function return statements
Checkpatch reported multiple instances of "void function return
statements are not generally useful" in hdd, so remove them.

Change-Id: Ia6ac669bdb9eaa71f9a68f1ef20f230acd59bf76
CRs-Fixed: 2121928
2017-10-12 14:00:27 -07:00
Jeff Johnson
4f7f7c6739 qcacld-3.0: hdd: Add missing blank line after declarations
Checkpatch reported multiple instances of "Missing a blank line after
declarations" in hdd, so fix them.

Change-Id: I0b86be9066425d0a92f88b96e08ff4a57f91765e
CRs-Fixed: 2121927
2017-10-12 14:00:23 -07:00
snandini
78bcd2521b Release 5.2.0.48J
Release 5.2.0.48J

Change-Id: I0afb77dea8a384f31acc0e0992b3e6bad2f54eb5
CRs-Fixed: 774533
2017-10-12 14:00:18 -07:00
Sandeep Puligilla
a9de16b83a qcacld-3.0: Update the assoc reject status
Assoc reject status sent over the air
is internal failure status not inline
with the specification.

Update the assoc reject status sent
over the air.

Change-Id: I01250c63a42302d7b386a33aaf3b18e272581868
CRs-Fixed: 2115126
2017-10-12 14:00:15 -07:00
snandini
552c983728 Release 5.2.0.48I
Release 5.2.0.48I

Change-Id: I08edb80600e53097b6e65d0ffc69805f6e58ada3
CRs-Fixed: 774533
2017-10-12 14:00:12 -07:00
Arif Hussain
4549efa73b qcacld-3.0: Use updated dfs public function
Dfs public function are renamed to have utils_ prefix,
make sure to call new dfs public API's.

Change-Id: Ib36ebb6ca4d3838c5e7468e22f6dd5182a0a08e0
CRs-Fixed: 2124373
2017-10-12 14:00:08 -07:00
snandini
83955108bb Release 5.2.0.48H
Release 5.2.0.48H

Change-Id: I89d930c50b60c04b9d4b785d3b6622a91745ebef
CRs-Fixed: 774533
2017-10-12 14:00:05 -07:00
Kiran Kumar Lokere
9471221c04 qcacld-3.0: Reduce log messages during scanning
Excessive logging during scan causes the watchdog timeout
hence reduce the log messages in the scan path

Change-Id: I378e9667dfad15cfd5ba1c68484b97567af5d45f
CRs-Fixed: 2079149
2017-10-12 14:00:02 -07:00
Houston Hoffman
59c9c91465 qcacld-3.0: add error handling for cdp_soc_attach
If cdp_soc_attach returns null, need to handle the error.

Change-Id: I8fe9c176ecf777564830baca9fc3b1e919fbb6e4
CRs-Fixed: 2118029
2017-10-12 13:59:56 -07:00
snandini
f038dfc2e9 Release 5.2.0.48G
Release 5.2.0.48G

Change-Id: I08289306955327056baff11db170f0a2f66c02c8
CRs-Fixed: 774533
2017-10-12 13:59:53 -07:00
Paul Zhang
008413c774 qcacld-3.0: Prevent buffer overflow
qcacld-2.0 to qcacld-3.0 propagation

In function wlanqcmbr_mc_process_msg, variable data_len
is from message, which should not be trusted. Buffer
overflow will happen if using it directory to copy data
to utf_buf.

Change-Id: I21479f510b95e6ced214f80d942db919837e8324
CRs-Fixed: 2116449
2017-10-12 13:59:50 -07:00
Yeshwanth Sriram Guntuka
a10da36a6b qcacld-3.0: Add host diag events for wow stats
Propagation from qcacld-2.0 to qcacld-3.0

Add diag event for wow packet counters stats.
The event EVENT_WLAN_POWERSAVE_WOW_STATS will be used to
inform the wow stats packet counters.

Change-Id: I9d1760aa6b790544b9879e7ef18d4f5359e0e245
CRs-Fixed: 1087714
2017-10-12 13:59:32 -07:00
Sandeep Puligilla
819d94f731 qcacld-3.0: Don't roam to 2G AP when 5G only configured
STA is roaming to 2G AP even though 5G
only is configured through ini.
Set weightage of the 2G social channels
to zero so that firmware will not roam
to 2G channels.

Change-Id: I7dea8413618265e0f1fe353da4b858583c1921af
CRs-Fixed: 2117614
2017-10-12 13:59:27 -07:00
snandini
0ee0437614 Release 5.2.0.48F
Release 5.2.0.48F

Change-Id: I2a4f9011dcbeb21c77d2dfa73b3f538237ec0a2e
CRs-Fixed: 774533
2017-10-12 13:59:21 -07:00
Sandeep Puligilla
a3cac40b8d qcacld-3.0: Initialize the pmkid cache variable
Invalid memory length passed to memcpy triggered
crash and it is due to unintialized stack variable.

Initialize pmkid cache variable to zero.

Change-Id: Ib25812086f4d9f8399ce560d6aa7423a1978d04d
CRs-Fixed: 2119987
2017-10-12 13:59:15 -07:00
hqu
70708abcf3 qcacld-3.0: Add device_mode check in hdd_ipa_send_pkt_to_tl
Add device_mode check in hdd_ipa_send_pkt_to_tl,
WLAN_HDD_GET_AP_CTX_PTR only can be used in SAP/P2P_GO mode.

Change-Id: Ieb4ce8fb28251432c9f3e22eb945b32f47776380
CRs-Fixed: 2123952
2017-10-12 13:59:09 -07:00
Ganesh Kondabattini
479a8aeed8 qcacld-3.0: Reset limit off channel parameters after disconnection
Reset the limit off channel parameters after disconnection, otherwise
FW is going to use these settings for future connections on the same
interface.

CRs-Fixed: 2105301
Change-Id: I00a408c1d71cdf261e5718a67d9417ac3fcd133c
2017-10-12 13:59:04 -07:00
Poddar, Siddarth
b904759184 qcacld-3.0: Add debug logs for FW_RX_REFILL failure
Add debug logs to capture htt rx_ring info during data stall
detection for FW_RX_REFILL failure reason.

Change-Id: I6733a37677ebccfef5096ac38858c4505e8665b6
CRs-Fixed: 2121686
2017-10-12 13:58:58 -07:00
Rajeev Kumar
155a3e4a88 qcacld-3.0: Add 1 second timed wake lock for 4 way handshake
Add 1 second wake lock for 4 way handshake to avoid APPS
power collapse in middle of eapol exchange which can delay
the association process.

Change-Id: Ife73dc00aa05b5a80d0a90afd18468bd033ebdd9
CRs-Fixed: 2118533
2017-10-12 13:58:53 -07:00
snandini
b0e9c09db2 Release 5.2.0.48E
Release 5.2.0.48E

Change-Id: I89dbd7bb75db75ceaea7a1ca14753ca8c01b30ce
CRs-Fixed: 774533
2017-10-12 13:58:47 -07:00
Naveen Rawat
a9a49cf10b qcacld-3.0: Add get string API for cfg_params
Move HE get string API for cfg_params to cfg_param_name.c and
make it generic so that any parameter can be added to it.

Change-Id: Id14fb60a97f479a5898a27b2a192f67801e49974
CRs-Fixed: 2106869
2017-10-12 13:58:42 -07:00
Vignesh Viswanathan
30e69280c7 qcacld-3.0: Fix potential infinite loop in get_container_ies_len
In the function get_container_ies_len, len (uint32) is calculated
from the length of the buffer parsed. Then it is copied to the uint8
pnConsumed pointer from the calling function. This could lead to
pnConsumed becoming 0 if len exceeds 255 and would cause infinte
loop in the function unpack_core.

Add changes to make pnConsumed passed from unpack_core to be uint32
so that there are no issues in get_container_ies_len

Change-Id: Ia5770b4becf7dd1cf7cb97ec2e0d94f3c5f4ed54
CRs-Fixed: 2101200
2017-10-12 13:58:37 -07:00
Houston Hoffman
b4558eb67e qcacld-3.0: Resolve double free during cleanup of vdev request
On vdev response timer expire, memory allocated for vdev request
will be freed in the timer handler(wma_vdev_resp_timer). But there
can be a race condition where wlan shutdown is invoked at the same
time, where host tried to cleanup unhandled vdev requests by calling
same timer handler.

To mitigate this issue don't free the memory if vdev request is not
found(as other thread freed memory by this time)

Change-Id: Iea214f0ed3acb9600b5a3b84b5740c1b496719d9
CRs-Fixed: 2049673
2017-10-12 13:58:31 -07:00
snandini
315faa61e2 Release 5.2.0.48D
Release 5.2.0.48D

Change-Id: I82a28ad09c54466c4c7dded91b10c739430c8832
CRs-Fixed: 774533
2017-10-12 13:58:26 -07:00
Venkata Sharath Chandra Manchala
1963fec7ca qcacld-3.0: Cleanup ununsed typedef in datapath
Remove unused typedef ol_rx_callback_fp in
datapath.

Change-Id: I867267aa791b6dd4fc02654c9fb1ba658cc51a5d
CRs-Fixed: 2123478
2017-10-12 13:58:22 -07:00
Kiran Kumar Lokere
85cb36bf6a qcacld-3.0: Flush the delayed acs work during adapter deinit
Flush the delayed acs work during the adapter deinit process.

Change-Id: I9b415a9d1b4f59b4f028e882ad09cf7f782e67b6
CRs-Fixed: 2109432
2017-10-12 13:58:17 -07:00
snandini
ffbb080419 Release 5.2.0.48C
Release 5.2.0.48C

Change-Id: I2baf545b84efe58da2e577d52ef6201316f445fc
CRs-Fixed: 774533
2017-10-12 13:58:12 -07:00
Ganesh Kondabattini
b2eabe321a qcacld-3.0: Force SCC changes in non DBS mode
In non DBS mode, force SCC if STA and SAP channels are not same.

CRs-Fixed: 2109798
Change-Id: I421cd3b82c96aa62482c6caee15e6bb077adba1d
2017-10-12 13:58:08 -07:00
snandini
3a1977b24d Release 5.2.0.48B
Release 5.2.0.48B

Change-Id: Ib993c48431078a1898d4ba027f00eb5832b21d81
CRs-Fixed: 774533
2017-10-12 13:58:03 -07:00
Srinivas Girigowda
ca52f04cfe qcacld-3.0: Remove BT coex in progress check
Rome and iHelium BT Coex FW capability is completely different from
earlier generation of driver/fw and hence this kind of BT Coex protection
may not be needed.

Change-Id: Ic2f34acc03a3830ad51296313e8844011ef48266
CRs-Fixed: 2066727
2017-10-12 13:57:54 -07:00
snandini
0603269db0 Release 5.2.0.48A
Release 5.2.0.48A

Change-Id: I264fc8eb7efa843496ad8e8125fc7def1f620d66
CRs-Fixed: 774533
2017-10-12 13:57:50 -07:00
Yun Park
cc720f0729 Revert "qcacld-3.0: Reset to NULL after freeing the memory"
This reverts commit If6a1b2857d14f5fff2f47e541156ce2c27fb33a3

Fix build error caused by missing SMMU change propagation,
where changed tx_comp_base to tx_comp_ring.

Change-Id: Ie845b9da0fa6272dfe95abaaf587a583fb4710b3
CRs-Fixed: 2119811
2017-10-12 13:57:45 -07:00
Amar Singhal
5e2d5f0047 qcacld-3.0: Add check for wiphy band while populating it
Wiphy band can be NULL since it is dynamically allocated depending
on some condition. So check for NULL before populating it.

CRs-Fixed: 2122279
Change-Id: If88045e2ebbb6bceb0ed3b5337cc70778b21f832
2017-10-12 13:57:41 -07:00
Naveen Rawat
c8096b4690 qcacld-3.0: Fix values for CFG_11AG_NUM_TX_CHAIN_NAME
Fix min, max and default values for CFG_11AG_NUM_TX_CHAIN_NAME

Change-Id: I50c84f08376fd5955206c02693e449c24ff364b8
CRs-Fixed: 2117874
2017-10-12 13:57:37 -07:00
snandini
bc6af4c186 Release 5.2.0.48
Release 5.2.0.48

Change-Id: I6e313ca7b053752b57a4a286080eb1ebb42c8490
CRs-Fixed: 774533
2017-10-12 13:57:33 -07:00
Naveen Rawat
6fc3c50ad0 qcacld-3.0: Save processed AUTH frames seq number in pe_session
In case STAUT is using auto-switch auth type for WEP, a retried AUTH frame
from AP can mess up our state machine and connection will fail. Save seq
number of processed auth so that retried frame can be dropped in host.

Change-Id: I00cedf594309e0bb9b4bb8f0ced2929e7d00f64d
CRs-Fixed: 2102402
2017-10-12 13:57:28 -07:00
Naveen Rawat
7e7af3ca75 Revert "qcacld-3.0: Add delay in sending open system auth frame"
This reverts Change-Id: I6bc7097ec7568fc65a379c7c31c96d5874f1e216

Change-Id: Ic63b451f507904b812b1874d9911f47f265aad23
CRs-Fixed: 2102402
2017-10-12 13:57:24 -07:00
Yun Park
01deb2cbba qcacld-3.0: Set IPA ownership for intra-BSS Tx packets
Set IPA ownership for intra-BSS Tx packets to avoid skb_orphan(), and
clear the ownership after check it to avoid ipa_free_skb() is called
when Tx completed.

Change-Id: I03883773e418bb5518ea63a324d22503173ea436
CRs-Fixed: 2062911
2017-10-12 13:57:21 -07:00
Yu Wang
66a250bbb5 qcacld-3.0: add ini config for PTP options
Add ini param 'gtsf_ptp_options' to control
PTP options, it's a bitmap:
bit0 - PTP_OPT_RX(0x1)
  set this bit to enable RX time stamping
bit1 - PTP_OPT_TX(0x2)
  set this bit to enable TX time stamping
bit2 - PTP_OPT_RAW(0x4)
  set this bit to use raw time as timestamp
bit3 - TSF_DBG_FS(0x8)
  set this bit to add device attriubte 'tsf' for iface

The default value of gtsf_ptp_options is 0xf

Propagated from qcacld-2.0.

Change-Id: Ie53d503bdd2e85790502583a238ee138f4bcf6c6
CRs-Fixed: 2079466
2017-10-12 13:57:17 -07:00
snandini
b041b7a809 Release 5.2.0.47Z
Release 5.2.0.47Z

Change-Id: I0e67649cd752215494d47c14c6fdf7637e0eacda
CRs-Fixed: 774533
2017-10-12 13:57:13 -07:00
Naveen Rawat
668dee36c7 qcacld-3.0: Avoid integer overflow in lim_update_ibss_prop_add_ies
In function lim_update_ibss_prop_add_ies size of a malloc is based on
sum of two integers. Add check for integer overflow before malloc.

Change-Id: Ia7f1b306e6eb99ee0cea9f2ef00123ca66a5c062
CRs-Fixed: 2119673
2017-10-12 13:57:09 -07:00
snandini
5ed9e96084 Release 5.2.0.47Y
Release 5.2.0.47Y

Change-Id: I2d6b6199caa5ea0f4d82e5edcc30247b684f86c6
CRs-Fixed: 774533
2017-10-12 13:57:05 -07:00
Jeff Johnson
5a6b660768 qcacld-3.0: Replace typedef tSirLedFlashingReq
The current driver strategy is to converge on unified APIs, and the
unified WMI struct flashing_req_params conveys the same information as
typedef tSirLedFlashingReq, therefore replace tSirLedFlashingReq with
struct flashing_req_params.

Change-Id: I4ef75ee3bff7c83dbf8197bba0802569282a414f
CRs-Fixed: 2121335
2017-10-12 13:57:01 -07:00
Jeff Johnson
04e00085e4 qcacld-3.0: Rename pBeaconIes
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pBeaconIes to align with the Coding
Style.

Change-Id: Ib1d48cd0db2a497c68c3596230b22e169ed0cc8f
CRs-Fixed: 2121264
2017-10-12 13:56:57 -07:00
Jeff Johnson
fd0608595b qcacld-3.0: hdd: Rename pRoamInfo
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pRoamInfo to align with the Coding
Style.

Change-Id: I39f76a4e11fb26c5ab4279ae0b02dddadd06a83b
CRs-Fixed: 2121188
2017-10-12 13:56:53 -07:00
Jeff Johnson
eddf544927 qcacld-3.0: sme: Rename pRoamInfo
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pRoamInfo to align with the Coding
Style.

Change-Id: I444fc7925066f0ef147aed666a02027661308799
CRs-Fixed: 2121187
2017-10-12 13:56:50 -07:00
Jeff Johnson
d377dce175 qcacld-3.0: Rename pHddStaCtx
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pHddStaCtx to align with the Coding
Style.

Change-Id: I508816b354eb592305cb238f7604ef39586c19b2
CRs-Fixed: 2121162
2017-10-12 13:56:46 -07:00
Jeff Johnson
5c19adea1a qcacld-3.0: Rename pHostapdState
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pHostapdState to align with the Coding
Style.

Change-Id: I11f20591272265ad2e0e9d1f5f8ae1243d3ecd5b
CRs-Fixed: 2121138
2017-10-12 13:56:43 -07:00
Rajeev Kumar Sirasanagandla
4c9b675e2f qcacld-3.0: Avoid auto phy mode for ini specific band
When specific band is set from ini file and if user is trying to change
phy mode to auto with iwpriv command, crash is seen.

To fix this, avoid eCSR_DOT11_MODE_AUTO when BandCapability is set.

Change-Id: Ieaaa1dddfafbed2fdf51b7c924977b02077f01b6
CRs-Fixed: 2082166
2017-10-12 13:56:40 -07:00
snandini
7ee07e375c Release 5.2.0.47X
Release 5.2.0.47X

Change-Id: I3d4bffbe0586321dc54b92edc3e52cb34ca46ec3
CRs-Fixed: 774533
2017-10-12 13:56:37 -07:00
snandini
a0fae8a30d Release 5.2.0.47W
Release 5.2.0.47W

Change-Id: I37c3bd172980766924bd16ea3a5c723b53e39d2d
CRs-Fixed: 774533
2017-10-12 13:56:30 -07:00
Jeff Johnson
9bf2497293 qcacld-3.0: Rename pHddApCtx
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pHddApCtx to align with the Coding
Style.

Change-Id: I9c209be206d9e453ec2c5adc7803126639d06b84
CRs-Fixed: 2121131
2017-10-12 13:56:27 -07:00
Jeff Johnson
9c4f93d221 qcacld-3.0: Rename pHostapdAdapter
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pHostapdAdapter to align with the Coding
Style.

Change-Id: I18a74117ae47ad05a1c46b50a14fcb64347f1c07
CRs-Fixed: 2121120
2017-10-12 13:56:24 -07:00
Jeff Johnson
50bc9d7af0 qcacld-3.0: Fix bad block comment in wlan_hdd_scan.h
Checkpatch has detected an instance of a block comment where the
trailing "*/" is not on a separate line, so fix it.

Change-Id: Ibe8c83ea4d87f04c330f0abe6953d2dfb2067ff7
CRs-Fixed: 2120626
2017-10-12 13:56:20 -07:00
Jeff Johnson
5cf5ad24bb qcacld-3.0: Fix long line in wlan_hdd_object_manager.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: I2c032cea2a4a9e868d7e3b71ca6ed8eddddbb067
CRs-Fixed: 2120623
2017-10-12 13:56:17 -07:00
snandini
1d533fe456 Release 5.2.0.47V
Release 5.2.0.47V

Change-Id: I5c25a7f6d2ba1b9089288516d8f80bc69245c7cf
CRs-Fixed: 774533
2017-10-12 13:56:13 -07:00
Jeff Johnson
18ef284298 qcacld-3.0: Fix long lines in wlan_hdd_wowl.h
Checkpatch has detected multiple instances of "line over 80
characters" so fix them.

Change-Id: Ie9b3a517b97c0f70f43e7991c0576eaf1e05ec38
CRs-Fixed: 2120622
2017-10-09 06:45:13 -07:00
Jeff Johnson
de353b83a0 qcacld-3.0: Fix long line in wlan_hdd_wmm.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: I38897ce96611505feaa0eda21f96ecb263359800
CRs-Fixed: 2120620
2017-10-09 06:45:10 -07:00
Jeff Johnson
4e63267a77 qcacld-3.0: Fix long line in wlan_hdd_wext.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: I093b691d0e05fa739d3c31a1780296ce6102dbd8
CRs-Fixed: 2120619
2017-10-09 06:45:07 -07:00
Jeff Johnson
811f47d567 qcacld-3.0: Fix long line in wlan_hdd_tx_rx.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: Icefa4f57c2307b58a618be181478aedac3d1e5c8
CRs-Fixed: 2120618
2017-10-09 06:45:04 -07:00
Jeff Johnson
ae9adc89a0 qcacld-3.0: Fix long line in wlan_hdd_tdls.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: I84f732a7ce5aed709d3992706ad15131b23eb391
CRs-Fixed: 2120627
2017-10-09 06:45:00 -07:00
Jeff Johnson
4fbee2fdce qcacld-3.0: Fix long line in wlan_hdd_power.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: I9a139de0aaeb0f6f199906d98fb1dd2d84dbb635
CRs-Fixed: 2120628
2017-10-09 06:44:57 -07:00
Jeff Johnson
af007eaf97 qcacld-3.0: Fix long line in wlan_hdd_ftm.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: Ifbf847db86aac8cb435103a2634e3c8bfa7fab20
CRs-Fixed: 2120624
2017-10-09 06:44:54 -07:00
snandini
98d368cf23 Release 5.2.0.47U
Release 5.2.0.47U

Change-Id: Ie020dd60f1d7e333d4f7028533c8bb5bb0d1c2a1
CRs-Fixed: 774533
2017-10-09 03:47:58 -07:00
Hanumanth Reddy Pothula
714d7d5bd7 qcacld-3.0: Remove unnecessary assertion in SAP callback
Propagation from qcacld-2.0 to qcacld-3.0

In random testing cases, the SAP close may be called even before the BSS
is started. In such cases the SAP callback may not have been registered
and such scenarios may lead to unnecessary assertion. Just returning an
errror should do.

Remove the assert but retain the error notification.

Change-Id: Ief9ea45d2d7f3d910766e73a9e0dca5e34c85905
CRs-Fixed: 2121720
2017-10-09 03:47:57 -07:00
Hanumanth Reddy Pothula
09121df9d7 qcacld-3.0: Fix frame lenth information to cfg80211
Propagation from qcacld-2.0 to qcacld-3.0

During BSS frame update, frame_len is calculated as size of ieee80211_mgmt
and ielen. Since ieee80211_mgmt is a generic frame structure and different
frame structures are defined under union this may exceed the actual frame
len.

Fix by calculatiing offset of variable(ies) and ies length.

Change-Id: Ied8e4e604e41de1ac5ccc047ef5cc3cdb05a9445
CRs-Fixed: 2121711
2017-10-09 03:47:55 -07:00
Hanumanth Reddy Pothula
ab3959506f qcacld-3.0: Update ini param g_auto_detect_power_failure_mode
Update ini param g_auto_detect_power_failure_mode to incorporate below
values,
0 - Don't register wow wakeup event and FW crashes on power failure
1 - Register wow wakeup event and FW sends failure event to host on
    power failure
2 - Don't register wow wakeup event and FW silently rejuvenate on
    power failure
3 - Don't register wow wakeup event and the auto power failure detect
    feature is disabled in FW.

Change-Id: I8a704954ecbacadbc035c1523fa41a18b6300f66
CRs-Fixed: 2087144
2017-10-09 03:47:52 -07:00
snandini
d1dee0e5ee Release 5.2.0.47T
Release 5.2.0.47T

Change-Id: I27ec50843d8f15dd9731400d26c5d2df7a750afe
CRs-Fixed: 774533
2017-10-06 21:49:14 -07:00
Krunal Soni
bfd0549f67 qcacld-3.0: Initialize roam id to invalid value
Current driver has roam id uninitialized in anticipation that roam id
will be filled by SME APIs to correct value but in error conditions
that value may not be filled at all. In those kind of cases
initializing to invalid value will help to avoid any security breach.

CRs-Fixed: 2119198
Change-Id: I96e55cb91ef76df63dd6ba267130e1092fdcf899
2017-10-06 21:49:13 -07:00
Arif Hussain
34f720671a qcacld-3.0: Fix buffer overflow in wma_pdev_hw_mode_transition_evt_handler
Make sure num_vdev_mac_entries which is coming from firmware within
MAX_VDEV_SUPPORTED to avoid any buffer overflow or OOB read.

Change-Id: I92793a6bcfd46b288c3f496a6f6cc9b372f60c48
CRs-Fixed: 2119432
2017-10-06 21:49:10 -07:00
snandini
47232fca8f Release 5.2.0.47S
Release 5.2.0.47S

Change-Id: I350b8b82a588400692ab9bc78598ed144d80604f
CRs-Fixed: 774533
2017-10-06 19:30:51 -07:00