Grafik Komit

1013 Melakukan

Penulis SHA1 Pesan Tanggal
Varun Reddy Yeturu
a48bc418c6 qcacld-3.0: Fix implicit enum conversion in csr_fetch_valid_ch_lst
Fix implicit conversion from enumeration type 'tSirRFBand'
to different enumeration type 'eCsrBand'

Currently 3 different types of enums exist to enumerate the
band type.Remove eCsrBand and tSirRfBand and
use tSirRFBand everywhere.

Change-Id: I1862c6d3a5daca7523870b7f0931ee4f20c7ce4f
CRs-Fixed: 2145080
2017-12-07 23:18:56 -08:00
Naveen Rawat
b0c5b6b6a0 qcacld-3.0: Statically allocate DPH hash table
DPH hash table is allocated for each session of depth equal to
max possible peers. This memory chunk goes upto 33KB in size and
may fail. Instead allocate the memory from BSS segment so that
run-time allocation is not needed.

Change-Id: I56d6adb7934faef1940ab8515fed30646f536ab2
CRs-fixed: 2149563
2017-12-07 19:26:50 -08:00
Bala Venkatesh
8c2c9712a3 qcacld-3.0: Change default value of gEnableTDLSScan
Change the value of CFG_TDLS_SCAN_ENABLE_DEFAULT to 1.

Change-Id: I51710ef88e14c02f48677b5fd271710b98e6eff1
CRs-Fixed: 2153756
2017-12-06 06:56:50 -08:00
Mohit Khanna
ca4173ba74 qcacld-3.0: add periodic data traffic stats
Add support for periodic stats for data packets to be displayed in
wlan driver logs.

Change-Id: Iee6759ae75657ae93e94ea1bb1343f2ea489c087
CRs-Fixed: 2120047
2017-12-04 19:47:06 -08:00
Mohit Khanna
6272fb68a8 qcacld-3.0: Add ini support for tcp_adv_win_scale
WLAN driver changes this system paramerter (via cnss-daemon) when the RX
throughput requirement changes LOW->HIGH or HIGH->LOW. This depends on
the whether the number of RX packets received in last 100ms interval is
greater than 500 or not. The 100ms and 500 thresh params are
configurable via WLAN ini file WCNSS_qcom_cfg.ini.

Add ini support to enable/disable changing of this system parameter by
WLAN driver. Since tcp_adv_win_scale is a system parameter, some
customers may not want the WLAN driver to change it and may want to set
their own default values.

"gTcpAdvWinScaleEnable=0" when added to the ini file will prevent
the driver from making any changes to the system parameter
"/proc/sys/net/ipv4/tcp_adv_win_scale". The default value of the ini
file param gTcpAdvWinScaleEnable is "1".

CRs-Fixed: 2033338
Change-Id: I19288bba11841cf176118abaf08ccaabaf2f79b9
2017-12-01 14:40:46 -08:00
Bala Venkatesh
b9cf336a5a qcacld-3.0: Add INI to force the P2p-Go to 11n for 11AC
The existing INI gSapForce11NFor11AC forces both P2P-Go and  SAP to 11n for
11AC. Add gGoForce11NFor11AC to force SAP and GO separately.

Change-Id: I26dce96ec582bed0ff3c62bd5f06fc96e85f0ee4
CRs-Fixed: 2140051
2017-11-25 05:20:24 -08:00
Abhishek Singh
b6cdaf12e6 qcacld-3.0: Add new scoring logic with user configuration
Adds new scoring logic with user configuration

Change-Id: Ib41190b4f7ea620d6889ca63842ed8102c16c319
CRs-Fixed: 2144590
2017-11-24 03:21:48 -08:00
Krunal Soni
b51eec7368 qcacld-3.0: (Part-3) Refactor open and close session logic in HDD module
Current open and close session APIs mainly defined in HDD, SME, and SAP
modules are not proper. They require some design changes to maintain the
consistency.

In order to achieve the goal of making symmetrical design for open
and close session logic, refactor existing API in HDD module.

CRs-Fixed: 2147971
Change-Id: Icdf8b0f99bc9fb828f7c68a32e5d25652baa8a17
2017-11-22 17:41:26 -08:00
Sourav Mohapatra
57006c767a qcacld-3.0: Add support for concurrent STA using ini param
Enable support for concurrent STA interface to be open during startup
using the ini param gEnableConcurrentSTA

Change-Id: Iede1f8673fb682753e31ed8f376453692938e4ba
2017-11-20 19:35:37 -08:00
Kabilan Kannan
6edafeb0c3 qcacld-3.0: Free user defined WOWL patterns
User defined wowl patterns are not freed in all
of the driver unload paths, and it causes
leaks in the system.
Free user defined wowl patterns in all the driver
unload paths.

Change-Id: I7b980a6392badb3d28f2c665a96108beb71f02d5
CRs-Fixed: 2144562
2017-11-20 15:21:10 -08:00
Dustin Brown
6f42792885 qcacld-3.0: Use delayed work instead of qdf_mc_timer for iface change
Currently, the interface idle (aka interface change) timeout uses a
qdf_mc_timer. This dependency on the MC thread means the MC thread
cannot be shutdown as part of the interface idle timeout work. This
wastes resources, and leads to the init/deinit paths to be out of sync
with respect to starting and stopping the MC thread. To address these
issues, use a delayed work to schedule the interface idle work instead
of a qdf_mc_timer.

Change-Id: I7570081112fa236a15d823e2a3857d252567f041
CRs-Fixed: 2112696
2017-11-16 11:40:22 -08:00
Abhishek Singh
34c0e6361c qcacld-3.0: Add ini support for rssi abs thresh for the candidate AP
The RSSI value of the candidate AP should be higher than rssi_abs_thresh
to roam to the AP. 0 means no absolute minimum RSSI is required.

The value sent to the firmware is the offset from the noise floor in dB.

Change-Id: Ic956a184ac9a241e310b5d46ee6c70b9d1962446
CRs-Fixed: 2118279
2017-11-14 11:27:40 -08:00
Poddar, Siddarth
3703303f59 qcacld-3.0: Add ini support to enable/disable data stall detection
Add ini support to enable/disable WIFI data stall
detection feature. By default gEnableDataStallDetection
ini set to 0.

CRs-Fixed: 2124762
Change-Id: I2d9cd3fe0092aeb29c37cded2e5245c9f816ec08
2017-11-13 07:26:23 -08:00
Yeshwanth Sriram Guntuka
3134a1b41f qcacld-3.0: Remove incorrect comment in ini description
Remove incorrect comment in broadcast probe response
ini description.

Change-Id: I74b390a7b0d2f767a18b41f2ef067cb25f322ba9
CRs-Fixed: 2141422
2017-11-13 03:42:17 -08:00
Lin Bai
556a192ff5 qcacld-3.0: Useless info sent by hdd_send_wlan_tp_ind
The gerrit which separates TcpDelAck and TcpAdvWinScale, is involving
the regression issue, that API hdd_send_wlan_tp_ind will send
useless info to upper.
Need set flag and rx_level members properly in indication.

CRs-Fixed: 2141612
Change-Id: I85082e2513f843edaec8365e0abddf572112c535
2017-11-10 17:40:50 -08:00
Yeshwanth Sriram Guntuka
2ba6fe9132 qcacld-3.0: Add ini to configure different OCE features
Add ini support to configure different OCE features
which is sent as bitmap to firmware via vdev_set_param
command.

Change-Id: I2c679a6fe902e1b41ba984ed2255eee02ed29549
CRs-Fixed: 2121585
2017-11-10 09:38:49 -08:00
Jeff Johnson
c1e6278e02 qcacld-3.0: Use enum QDF_OPMODE
Change "qcacmn: Rename enum tQDF_ADAPTER_MODE" (qca-wifi-host-cmn
Change-Id I20f1b6d1a0ab4b8fe6a85cefdff96a49e2f4652c) renamed enum
tQDF_ADAPTER_MODE to QDF_OPMODE. Update all references to use the
new name.

Change-Id: Ic6f663dac11a100f168b2626c7c0fbcaccbfca4f
CRs-Fixed: 2141065
2017-11-10 00:27:42 -08:00
Jeff Johnson
80c1b19913 qcacld-3.0: Fix style issues in wlan_hdd_lro.h
The checkpatch script identified multiple Linux coding style issues in
wlan_hdd_lro.h, so fix them.

Change-Id: I1e419f86db33f36c7af4f25b0e61f79a2890d27b
CRs-Fixed: 2141064
2017-11-10 00:27:39 -08:00
Jeff Johnson
172237b859 qcacld-3.0: Replace typedef tCsrRoamInfo
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 tCsrRoamInfo typedef does not
meet any of those criteria, and the underlying struct is already being
used in some places, so replace all remaining tCsrRoamInfo references
with a reference to the underlying struct.

Change-Id: I1da4b04ec92e176fe28b33d30ec7823828c35c8d
CRs-Fixed: 2140349
2017-11-08 19:42:51 -08:00
Jeff Johnson
df66e3f0a6 qcacld-3.0: Rename struct tagCsrRoamInfo
Per the Linux coding style "mixed-case names are frowned upon" so
rename struct tagCsrRoamInfo.

Change-Id: I21e6c423408f74603e9b469cace00884274d2b61
CRs-Fixed: 2140345
2017-11-08 19:42:39 -08:00
Jeff Johnson
60cbd2db9c qcacld-3.0: Rename hdd_context enableSapSuspend field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field enableSapSuspend in struct hdd_context.

Change-Id: I8f5321fa57c01a36df72dec17499969d0848e3dd
CRs-Fixed: 2140344
2017-11-08 19:42:36 -08:00
Jeff Johnson
450d244335 qcacld-3.0: Fix style issues in hdd_skb_fill_gso_size()
The checkpatch script identified multiple style issues in
hdd_skb_fill_gso_size(), so fix them.

Change-Id: Ie628cd390d1c89d94b4687a6a56ebe7110f3a568
CRs-Fixed: 2140343
2017-11-08 19:42:32 -08:00
lifeng
7c607dd603 qcacld-3.0: Add a timer to reduce and resume beacon interval
qcacld-2.0 to qcacld-3.0 propagation

Reduce the beacon interval just before the channel switch.
This would help in reducing the downtime on the STA side which
is waiting for beacons from the AP to resume back transmission.

Switch back the beacon_interval to its original value after
the channel switch based on the timeout. This would ensure
there are atleast some beacons sent with increased frequency.

Change-Id: I37db52713d9e2c78abbb97a7cd0274d9da35bfd2
CRs-Fixed: 1094958
2017-11-07 01:13:18 -08:00
lifeng
1c16b6b0ac qcacld-3.0: Enhance dfs beacon tx
qcacld-2.0 to qcacld-3.0 propagation

Send one action frame along with each beacon tx to reduce failure
of channel switching on sta side.

Change-Id: Idbbe1a4bcb4976101680974214fe85d9886ba7d1
CRs-Fixed: 1094958
2017-11-07 01:13:15 -08:00
Poddar, Siddarth
4b3f731265 qcacld-3.0: Support for vendor issuing Enable/Disable LRO command
Add support for Enable/Disable LRO at run time through vendor
command. In case of USB tethering with WLAN0 as upstream,
vendor command will be issued to disable LRO. On reception
driver will disable LRO and enable tcpdelack.

Change-Id: If64da28c040868d5b42af202c647251db1a684c0
CRs-Fixed: 2060320
2017-11-06 19:21:18 -08:00
Jeff Johnson
9268e097cc qcacld-3.0: Fix hdd_string_to_u8_array() prototype
Currently the prototype for hdd_string_to_u8_array() doesn't exactly
match the signature of the implementation, so fix the prototype to
match. In addition relocate the documentation to the header file.

Change-Id: Idd2cb27dddddd14f12d0e11119131ecacdc369bb
CRs-Fixed: 2138017
2017-11-06 18:30:00 -08:00
Jeff Johnson
1ad3fbd339 qcacld-3.0: Rename sendDeauthBeforeCon
The Linux Coding Style frowns upon mixed-case names, so rename all
instances of sendDeauthBeforeCon to align with the Coding Style.

Change-Id: Iac2ed0dbaa9c4d2bfb103813d63ab0d7a79ff868
CRs-Fixed: 2138016
2017-11-06 18:29:57 -08:00
Jeff Johnson
5505db8b3c qcacld-3.0: Rename pWlanDev
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pWlanDev to align with the Coding Style.

Change-Id: I4fcceec19e1bca130f224b4350d40b5e8be69f28
CRs-Fixed: 2138015
2017-11-06 18:29:54 -08:00
Jeff Johnson
59b19312d3 qcacld-3.0: Rename hdd_context btCoexModeSet field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field btCoexModeSet in struct hdd_context.

Change-Id: I3db356fca8fb1fe0022fdddcddb05d709b64d870
CRs-Fixed: 2138014
2017-11-06 18:29:51 -08:00
Jeff Johnson
acbdb1c174 qcacld-3.0: Rename p2pDeviceAddress
Per the Linux coding style "mixed-case names are frowned upon" so
rename field p2pDeviceAddress in struct hdd_context as well as the
local variable of the same name in __wlan_hdd_add_virtual_intf().

Change-Id: I5604066e115630786afe381ee61433ed516e3248
CRs-Fixed: 2138013
2017-11-06 18:29:49 -08:00
Jeff Johnson
6b51b6a6c8 qcacld-3.0: Rename hddWmmDscpToUpMap
Per the Linux coding style "mixed-case names are frowned upon" so
rename field hddWmmDscpToUpMap in struct hdd_adapter as well as the
local variable of the same name in hdd_wmm_init().

Change-Id: I9ce70c28f492850c0e4aa4245403d06f4128c9e8
CRs-Fixed: 2138012
2017-11-06 18:29:46 -08:00
Sandeep Puligilla
5f86d9986b qcacld-3.0: Cleanup mscanpending flag
cleanup mscanpending flag and replace it
with scan component API's to get the
status of pending scans.

Change-Id: I87c3d18f4da35800d1c2a323bdd5be88a71bccca
CRs-Fixed: 2136149
2017-11-05 00:08:32 -07:00
Rajeev Kumar
6c46dd8335 qcacld-3.0: Remove duplicate PNO scan update logic from legacy HDD
PNO is moved to scan component and logic to update PNO scan result
has also moved to SCM hence remove the duplciate logic from HDD.

Change-Id: I85c601fef72021a053e1d73cc3a295cffb010fbe
CRs-Fixed: 2138067
2017-11-04 06:59:41 -07:00
Jeff Johnson
7d2f4c689f qcacld-3.0: Rename struct hdd_wapi_info fields
Per the Linux coding style "mixed-case names are frowned upon" so
rename all fields in struct hdd_wapi_info.

Change-Id: I7df5a9523d00186f8b40de81c8544c0c1dc56b69
CRs-Fixed: 2137220
2017-11-02 12:59:16 -07:00
Jeff Johnson
1b780e42ba qcacld-3.0: Rename hdd_adapter sessionId field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field sessionId in struct hdd_adapter.

Change-Id: Ic33452766d5aee02fa0d87f9d198485b4192db39
CRs-Fixed: 2135916
2017-11-02 12:59:16 -07:00
Jeff Johnson
af2ae4b3bf qcacld-3.0: Rename some hdd_roaming_info fields
Per the Linux coding style "mixed-case names are frowned upon" so
rename the following fields in struct hdd_roaming_info:
- peerMac
- roamId
- roamStatus
- deferKeyComplete

Change-Id: I14f280ad3d8043aee3098ad9f28fc86a97202249
CRs-Fixed: 2136542
2017-11-02 12:59:16 -07:00
Jeff Johnson
02d14cee08 qcacld-3.0: Rename hdd_adapter hddWmmStatus field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field hddWmmStatus in struct hdd_adapter.

Change-Id: I6434cc45e4e00bad602721336011b335ca300687
CRs-Fixed: 2135914
2017-11-02 12:59:16 -07:00
Jeff Johnson
fee20aa724 qcacld-3.0: Remove obsolete roamingState
Field roamingState in struct hdd_roaming_info is written but never
read. Since this information is not used, remove it.

Change-Id: If845658a3aa46843e6e558911ed8dee68ea592d1
CRs-Fixed: 2135912
2017-11-02 12:59:16 -07:00
Jeff Johnson
bd4c4f029b qcacld-3.0: Rename hdd_adapter linkStatus field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field linkStatus in struct hdd_adapter.

Change-Id: I842b4caae5f0c8fef90d9a6971cce2416983dc6f
CRs-Fixed: 2135915
2017-11-02 12:59:16 -07:00
Jeff Johnson
e2ba3cdc2d qcacld-3.0: Rename hdd_context enableRxThread field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field enableRxThread in struct hdd_context.

Change-Id: Ie9f100879a730d341f89a035d8386685d71a3a44
CRs-Fixed: 2135911
2017-11-02 12:59:15 -07:00
Jeff Johnson
19fc8e4ed5 qcacld-3.0: Rename hdd_context hddAdapters field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field hddAdapters in struct hdd_context.

Change-Id: I6e7e0b4fe5a93a9ce830313bf2537564062e5ce5
CRs-Fixed: 2135910
2017-11-02 12:59:15 -07:00
Jeff Johnson
214671b36b qcacld-3.0: Rename hdd_context isWiphySuspended field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field isWiphySuspended in struct hdd_context.

Change-Id: If32333fe2cf5a4494e0f631909ebc1e16d679269
CRs-Fixed: 2135909
2017-11-02 12:59:15 -07:00
Jeff Johnson
b94248675b qcacld-3.0: Rename hdd_adapter sessionCtx field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field sessionCtx in struct hdd_adapter.

Change-Id: I726adb12694860a57e1c9a46071ed97dafdc46e9
CRs-Fixed: 2134952
2017-11-02 12:59:15 -07:00
Jeff Johnson
fab9b2525c qcacld-3.0: Remove setHDtimTransn ioctl support
The setHDtimTransn ioctl is obsolete, so remove it.

Change-Id: I2745ee2f2bc2f0d33f792c33b57232b146822e33
CRs-Fixed: 2134946
2017-11-02 12:59:14 -07:00
Jeff Johnson
d30ee4b603 qcacld-3.0: Rename hdd_adapter isLinkLayerStatsSet field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field isLinkLayerStatsSet in struct hdd_adapter.

Change-Id: I1fd0b9376ca49734f1fdbe44a072aaa2b65265d7
CRs-Fixed: 2134945
2017-11-02 12:59:14 -07:00
Jeff Johnson
1e851a16f7 qcacld-3.0: Rename hdd_adapter macAddressCurrent field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field macAddressCurrent in struct hdd_adapter.

Change-Id: If4c674f7d8f10089d72e78954922ed1e859ea08e
CRs-Fixed: 2134944
2017-11-02 12:59:14 -07:00
Jeff Johnson
b527ebe705 qcacld-3.0: Rename hdd_adapter IP notifier work queues
Per the Linux coding style "mixed-case names are frowned upon" so
rename fields ipv4NotifierWorkQueue and ipv6NotifierWorkQueue in
struct hdd_adapter.

Change-Id: I91e3a439bb4e9aabbc2ab22673379e1332e5075d
CRs-Fixed: 2134943
2017-11-02 12:59:14 -07:00
Jeff Johnson
137c8eec3a qcacld-3.0: Rename hdd_adapter PSB fields
Per the Linux coding style "mixed-case names are frowned upon" so
rename fields psbChanged and configuredPsb in struct hdd_adapter.

Change-Id: I87d7b74f95e3644f718fc18ace285bf4b6066985
CRs-Fixed: 2134942
2017-11-02 12:59:14 -07:00
Jeff Johnson
18e866295d qcacld-3.0: Remove unused hdd_adapter TX fields
Fields mgmtTxCompletionStatus, monTxWorkQueue, and skb_to_tx in struct
hdd_adapter are unused, so remove them.

Change-Id: Ie050f8e144fdaf35fadb0baeb22a31c209a93b28
CRs-Fixed: 2134941
2017-11-02 12:59:14 -07:00
Jeff Johnson
c72c573df8 qcacld-3.0: Rename hdd_adapter isLinkUpSvcNeeded field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field isLinkUpSvcNeeded in struct hdd_adapter.

Change-Id: If2c6f33fb1a25fc3a88ba2f42309b5cb5bb11d65
CRs-Fixed: 2134940
2017-11-02 12:59:14 -07:00