Commit grafiek

1267 Commits

Auteur SHA1 Bericht Datum
Govind Singh
d39315d8cb qcacld-3.0: Move SIGN_HEADER_MAGIC definition to BMI layer
FW common files needs to be in sync with host and fw.
SIGN_HEADER_MAGIC is not defined in fw common header files.
Abstract extra definition internal to host driver.

Change-Id: Ie902ca191617a6829c2cf3e6a45c3d170ae8d8c6
CRs-Fixed: 1012542
2016-06-06 18:45:18 -07:00
Nirav Shah
07e39a6738 qcacld-3.0: Refactor DPTRACE to support new features
Refactor DPTRACE to support new datapath features like
TSO and FASTPATH and add support to log DHCP, ARP and
EAPOL packets.

Change-Id: I9b80a003759c962020165c21dbe29330700c4667
CRs-Fixed: 1008087
2016-06-06 18:45:16 -07:00
Nirav Shah
7f337dbb7a qcacld-3.0: Use different copy engine for packetlog
Create new endpoint and use CE11 for packetlog
messages from target to host.

CRs-Fixed: 995628
Change-Id: I0df597468b0b7399dc545b5a4d4fd1a4c04a1df0
2016-06-06 18:45:14 -07:00
Agrawal Ashish
c9ddbabf76 qcacld-3.0: Implement vendor command to restart SAP on some channel
qcacld-2.0 to qcacld-3.0 propagation

Add support for vendor command which will do restart of the SAP
on desirable channel.
QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG is used to send
driver to restart SAP device on some other channel.
Upon receiving this command, driver will do __hdd_hostapd_stop
and will disable all queues.
After that WLANSAP_StartBss start SAP on user config channel.

Change-Id: I34d4e4f758ca7e010ae198af31d9fc3777973b22
CRs-Fixed: 1000593
2016-06-06 18:45:10 -07:00
Akash Patel
5b733215c9 Release 5.1.0.10
Release 5.1.0.10

Change-Id: I3fa5387f664b39f0647a526b820317c6f7e27190
CRs-Fixed: 688141
2016-06-01 10:51:22 -07:00
Yuanyuan Liu
960fa2145c qcacld-3.0: Fix error of invalid dev type when unloading wlan
PLD deletes dev node before calling HDD remove callback functions.
It causes an error of reporting invalid dev type when a platform
API is called within remove callback function. Deleting dev node
after remove callback being called will fix the issue.

CRs-Fixed: 1020538
Change-Id: I3df5810c20a5965b908f15d4182e9b927e033afc
2016-06-01 10:51:16 -07:00
Amar Singhal
83a047accb qcacld-3.0: Process SET_FCC_CHANNEL only after scan is finished
Currently SET_FCC_CHANNEL issues "update channel list" to firmware.
If scan is in progress, firmware aborts the scan resuting delay in
results update on the GUI. To avoid this, issue "update channel list"
only after scan is finished.

CRs-Fixed: 972208
Change-Id: I4c34010109443434bbe3abf45df7a0cf2effbee2
2016-06-01 10:49:56 -07:00
Amar Singhal
7c1e898b61 qcacld-3.0: Enable channels 12 & 13 when SET_FCC_CHANNEL is set
qcacld-2.0 to qcacld-3.0 propagation

Currently Ch 12/13 are disabled when SET_FCC_CHANNEL is issued by
framework. To meet FCC rules and to meet requirement for
other countries regulatory reduce TxPower for channel 12/13.

Change-Id: Ie833804e565f40e28845160452d3245334a34308
CRs-Fixed: 961580
2016-06-01 10:49:46 -07:00
Amar Singhal
c01d4a6f4c qcacld-3.0: Change default INI value for 11d
Only tablet solutions are likely to use 11d. So disable 11d
by default.

Change-Id: Ia999b47af83bd40e46cc9b48d1d173d6aecd9f1a
CRs-Fixed: 1018607
2016-06-01 10:49:38 -07:00
Rajeev Kumar
8ce712f9d7 qcacld-3.0: Convert wlan_hdd_wowl.c to unified logging
Currently the HDD code uses a variety of logging APIs.
In qcacld-3.0 HDD should converge on a unified set of
logging APIs. Update wlan_hdd_wowl.c to use the unified
set of logging APIs.

Change-Id: I3243b578fac6bdfc7bcdc45808b4466f38d61b3d
CRs-Fixed: 937692
2016-06-01 10:49:23 -07:00
Ryan Hsu
cfef0aee5b qcacld-3.0: Enable the FTM mode to retrieve the radio index
qcacld-2.0 to qcacld-3.0 propagation

The wlan_hdd_nl_init() is escaped for FTM case due to the multicast
logging feature is not required for FTM mode.

But with recent logging feature change, when CNSS_LOGGER enabled,
the wlan_hdd_nl_init() is used to register to cnss_logger module
and retrieves the radio index. So allow the wlan_hdd_nl_init() be called
in both FTM and normal mode, then the radio index can be correctly assigned.

This change doesn't impact to the non CNSS_LOGGER case as it does still
initialized, but never been used.

Change-Id: Ic78982baef8770494c4319df8b1bde45f4d2bd02
CRs-fixed: 1007357
2016-06-01 10:49:19 -07:00
Ryan Hsu
7ac8885a0d qcacld-3.0: Add radio_index info to get_wifi_info command
qcacld-2.0 to qcacld-3.0 propagation

Add the radio_index information to get_wifi_info command.
This change allows user space to know which radio it is
talking to.

Also refactor the get_wifi_info command to support to query
multiple attributes in one command.

Change-Id: Ic3a3aabd9111e655ace3869771ae439aaec45dc4
CRs-fixed: 997545
2016-06-01 10:49:15 -07:00
Ryan Hsu
ceddceb391 qcacld-3.0: Add support for cnss logger module
qcacld-2.0 to qcacld-3.0 propagation

CONFIG_CNSS_LOGGER is introduced to move the logging feature from
CLD driver to kernel module.

This change will mainly benefit for two things for CLD driver.

    - To support for dual wifi driver instances and also
      future plan of moving out the logging thread and buffer
      management to the kernel module.

    - While debugging the critical feature that triggers the
      autoshutdown and SSR, the log buffer in the CLD driver will
      be lost after the driver restart or unload.

The CLD driver will register itself to the cnss logging module and
get the radio index as the indentification for rest of the operation.

Also the message sent from CLD driver to usespace need to be packed with
struct tAniNlHdr; and the hddctx.radio_index need to be filled along with
the message, so that usespace can differentiate the message.

Change-Id: I7ea6cdefac0916b9d4dd76da175607bf7169a8fa
CRs-fixed: 995073
2016-06-01 10:49:09 -07:00
Ryan Hsu
5e2e20529e qcacld-3.0: Avoid failing driver when cesium_nl_sock failed
qcacld-2.0 to qcacld-3.0 propagation

In the dual wifi instances, the 2nd cesium_nl_sock initialization
will fail due to the first driver has registered the socket.

This doesn't have to fail the driver to be up running, so simply
print a warning in this case.

Also add a check in the case to use the cesium_nl_sock to make sure
it is properly used only when it is initialized.

Change-Id: Ia62d606c1400b437f08c28951d6a6a77428f73b1
CRs-fixed: 995038
2016-06-01 10:49:03 -07:00
Mahesh A Saptasagar
da5a6823b1 qcacld-3.0: Broadcast logs irrespective of cnss_diag is running or not
qcacld-2.0 to qcacld-3.0 propagation

Current cnss_diag implementation, do not send NL message in order to
register with host driver, as host driver broadcasts both firmware and
host messages to all the userspace apps whoever is listening on NL
socket.

Hence broadcast logs irrespective of cnss_diag is running or not. Also
do not indicate host driver load/unload status to cnss_diag app.

Change-Id: Ib36324f5bb8dc50521e4646b6184cfe586c10104
CRs-Fixed: 993754
2016-06-01 10:48:59 -07:00
Mahesh A Saptasagar
72d2e4b2a3 qcacld-3.0: Define setKeepAlive ioctl with proper arguments
Define proper set arguments for setKeepAlive ioctl by Passing
sizeof setKeepAlive request parameter structure.

Change-Id: I4699fecb24f6b3c927e8b7c8263a611b354914a3
CRs-Fixed: 955411
2016-06-01 10:48:50 -07:00
Mahesh Kumar Kalikot Veetil
2935d25d05 qcacld-3.0: accept module name externally
qcacld-2.0 to qcacld-3.0 propagation

If module name is provided externally, override the default
module name.

Change-Id: I985f230de601830d8f8c35f1600a09c4ccede88f
CRs-Fixed: 999402
2016-06-01 10:48:46 -07:00
Jeff Johnson
330292a194 qcacld-3.0: Fix checkpatch errors in wlan_hdd_driver_ops.c
Currently the kernel checkpatch script is reporting several errors in
wlan_hdd_driver_ops.c:

ERROR: code indent should use tabs where possible
+        .runtime_suspend = wlan_hdd_pld_runtime_suspend,$
ERROR: code indent should use tabs where possible
+        .runtime_resume = wlan_hdd_pld_runtime_resume,$

Fix those errors.

Change-Id: Iae89ad6f55b6d1ba264767deaccbd58781925ead
CRs-Fixed: 1017135
2016-06-01 10:48:41 -07:00
Naveen Rawat
c9f0952c93 qcacld-3.1: Add WOW handler for NAN event
This is qcacld-2.0 to qcacld-3.1 propagation

Add NAN event case in WMI_WOW_WAKEUP_HOST_EVENTID handler function.

Change-Id: I9348d78bc1eebea0ad7ce9889727ea01c1528374
CRs-Fixed: 977484
2016-06-01 10:46:08 -07:00
Nirav Shah
f099e5e180 qcacld-3.0: Handle multiple map/unmap handler for same peer_id
Handle multiple map/unmap handler from firmware
for same peer_id. Firmware sends map/unmap event
per copy engine enabled for RX path.

CRs-Fixed: 1009289
Change-Id: Id8b0c27920a7aae95ddd4cff26731de85248457e
2016-06-01 10:45:58 -07:00
Kiran Kumar Lokere
9d41f61a0c qcacld-3.0: Send the correct phy mode in SAP+STA mode
In STA+SAP concurrency case the SAP channel is changed to due
to concurrency operation. Since the new channel params are not
updated in sap context, the old channel params are sent to WMA,
hence the PHY MODE is passed as UNKNOWN to FW.

Set the channel params when the SAP operating channel is changed
due to concurrent operation.

Change-Id: I8ac503a1b8993401b6fbdc247872539b72901564
CRs-Fixed: 1014368
2016-06-01 10:45:42 -07:00
Amar Singhal
046eb8a260 qcacld-3.0: Fix calculation of WLAN_PHY_MODE
Fix the calculation of WLAN_PHY_MODE from dot11mode and channel width.
Take care of all possible values of dot11mode and channel width.
Remove the usage of vht_capable parameter. Also remove the
un-necessary usage of CONFIG_160MHZ_SUPPORT.

Change-Id: Ibc263aed99b0b948f60ac6f1bfe72d16fda5c20e
CRs-Fixed: 1009720
2016-06-01 10:45:19 -07:00
Govind Singh
df35f3ef5e qcacld-3.0: Abstract delta code of fw common to respective layer
FW common files needs to be in sync with host and fw.
Abstract extra definition of hia map internal to hif layer.
MSI_NUM_REQUEST is incorrectly overwritten, keep the original
change as MSI_ENABLE is false across all target versions.
These changes are incorrectly added in following change id.
Iced029073c2db9eb175adcebcad9163ab39443a9.

Change-Id: Ie38666f315067ae40676e3bdac9238e4b52e6be1
CRs-Fixed: 1012542
2016-06-01 22:12:43 +05:30
Peng Xu
62c8c43b42 qcacld-3.0: Address return code handling and code cleanup
In Tx power scaling implementation, there are places where return
code is not handled properly and some code formatting needs cleanup.
This change address these issues.

CRs-fixed: 1013097
Change-Id: I3bafde8c046487cc1a80de22348c21f6d835efb5
2016-05-23 11:47:03 -07:00
Varun Reddy Yeturu
21953a2f64 qcacld-3.0: Disable early stop feature as per config
If early stop feature is disabled in the configuration,
then let the firmware know to disable it.
There is no WMI item to let firmware know about disabling
the feature explicitly.
Hence, set the roam_earlystop_thres_min and roam_earlystop_thres_max
to zero which the firmware uses to disable the feature.

CRs-Fixed: 1017635
Change-Id: I122677ee3d73403748091832ec52cbc3f17500d6
2016-05-23 11:46:58 -07:00
Varun Reddy Yeturu
a9c259402e qcacld-3.0: LFR2.0: Fix to transition the roaming state
Fix the regression caused by the patch-set 5 of change-id
I56e8441f08dec180f080c305ba5c6541302f107c, where the API
to transition the roaming state,
CSR_NEIGHBOR_ROAM_STATE_TRANSITION has been replaced by
another API csr_neighbor_middle_of_roaming.

CRs-Fixed: 1017545
Change-Id: Icc30faf2816dcb8b6858fe1c80deb942d255ebfd
2016-05-23 11:46:56 -07:00
Varun Reddy Yeturu
986cd65e73 qcacld-3.0: Remove obsolete config items Part 1
Remove unused configuration items

CRs-Fixed: 1014978
Change-Id: I4c41de218033055bebb6bcdb5bde77ec028b3381
2016-05-23 11:46:53 -07:00
Varun Reddy Yeturu
f64252ab9f qcacld-3.0: Fix incorrect logic to disable hi_rssi feature
qcacld-2.0 to qcacld-3.0 propagation

Fix incorrect logic to disable hi_rssi feature.
Both hi_rssi_scan_rssi_delta and neighborLookupThreshold are
positive values. Ideally it should be checked if the current
AP is better than the HI_RSSI threshold and then disable
the feature. The HI_RSSI threshold is the difference
between the lookup threshold and the hi_rssi delta.

CRs-Fixed: 1014859
Change-Id: I6980927b25c34b9b4d8ac13c22e93abc4ec500ec
2016-05-23 11:46:50 -07:00
Varun Reddy Yeturu
7fc616d09a qcacld-3.0: Disable HI_RSSI_SCAN in few scenarios
qcacld-2.0 to qcacld-3.0 propagation

The HI_RSSI_SCAN feature is only meant to address the
scenario where user walks into a home which has dual band
AP and the 2.4G AP is visible initially and then the 5G AP
is visible later.
Disable the HI_RSSI_SCAN feature in the following cases:
1. Connection is a roaming connection
2. Connection is made with a 5G AP
3. Connection is made with a 2.4G AP, but the rssi is
   stronger than the hi_rssi_lookup_threshold

CRs-Fixed: 975401
Change-Id: I86c63d9f8b51b6bdccc804163241ffe5640baf4d
2016-05-23 11:46:46 -07:00
Varun Reddy Yeturu
ff4feb0a0e qcacld-3.0: Cleanup NCHO commands
Aggregate all the handlers of NCHO configration update
commands into a single routine

CRs-Fixed: 1007810
Change-Id: I9722dbead499f14f3969a85a20baf74aa03efff2
2016-05-23 11:46:41 -07:00
Yuanyuan Liu
6a313dcb16 qcacld-3.0: Get FW file names from PLD
Get FW file names from PLD.

CRs-Fixed: 1014363
Change-Id: I332cba76a3338eed27d37244bd9351ece99dcd97
2016-05-23 11:46:38 -07:00
Abhishek Singh
3e6172f91e qcacld-3.0: Reset the global reg params during wiphy unregisteration
qcacld-2.0 to qcacld-3.0 propagation

After boot when driver is loaded for the first time, driver call
the regulatory_hint with default country.

From kernel 3.18 onward regulatory_hint removes the
REGULATORY_CUSTOM_REG flag from wiphy flags. But once reg notifier
is called for the country the wiphy flags are restored from the
original flags stored in driver.

Now if driver is unloaded and loaded again, kernel calls the reg
notifier for the last country set by driver before unload.

In static drivers the global static flag init_by_driver will remain
true even after unload and load and thus init_by_reg_core is not set
to true when kernel calls the reg notifier. Thus driver ends up
sending reg hint to kernel with same country, this reg hint removes
the REGULATORY_CUSTOM_REG flag from wiphy flags and is dropped in
the kernel as country has not changed. As reg notifier is not
called for the reg hint and wiphy flags are not restored.

To avoid changing of wiphy flags, reset the global static reg params
during wiphy unregisteration.

Change-Id: I01b29a2314ab4192e6bc9076978d54762a85c9e8
CRs-Fixed: 1003390
2016-05-23 11:46:26 -07:00
Abhishek Singh
f512bf3377 qcacld-3.0: Reset wifi flag when wifi is turned off with static driver
qcacld-2.0 to qcacld-3.0 propagation

In case of static driver, upon wifi turn off module exit
doesn't happens. Module exit helps in cleanup of static memory.

If driver is loaded statically, at the time of driver unload,
wiphy flags are not cleared because of static memory.
Fix it by removing channel type as static.

Change-Id: I198ea87da3d160716a8c1c04b879ecb7c6f63180
CRs-Fixed: 944530
2016-05-23 11:46:22 -07:00
Abhishek Singh
23edd1cfa9 qcacld-3.0: Reduce the info level logs in STA/SAP
qcacld-2.0 to qcacld-3.0 propagation

Reduce the info level logs in STA/SAP

Change-Id: I5918ea8e9dd2f7654e5a994ad366f92d2ca3cd77
CRs-Fixed: 988195
2016-05-23 11:46:16 -07:00
Abhishek Singh
10ecf58dc6 qcacld-3.0: Add INI params to set edca min, max and aifs params
qcacld-2.0 to qcacld-3.0 propagation

Add INI params gEdcaVoCwmin, gEdcaViCwmin, gEdcaBkCwmin,
gEdcaBeCwmin, gEdcaVoCwmax, gEdcaViCwmax, gEdcaBkCwmax,
gEdcaBeCwmax, gEdcaVoAifs, gEdcaViAifs, gEdcaBkAifs and
gEdcaBeAifs to control edca params for STA mode.

These params will overwrite the values from AP only if
gEnableEdcaParams is set.

Change-Id: I1e688a67df320208416aba4ca40fd870a947e3be
CRs-Fixed: 996685
2016-05-23 11:46:12 -07:00
Yuanyuan Liu
1373850b01 qcacld-3.0: HDD: Use PLD APIs (Part 2)
Replace CNSS/ICNSS APIs with PLD APIs for PCIE/SNOC.
SDIO/USB changes need to be done separately by adding
SDIO/USB support in PLD

Change-Id: I0d2446e57922254369b7e7ca69d900006f7a7e28
CRs-Fixed: 1000113
2016-05-23 11:46:06 -07:00
Yuanyuan Liu
0e0aa93d32 qcacld-3.0: Use PLD APIs
Replace CNSS/ICNSS APIs with PLD APIs.

Change-Id: Ic0be1ff00dd7b4fc0b125e625f5d3977f4580c5e
CRs-Fixed: 1014363
2016-05-23 11:45:57 -07:00
Yuanyuan Liu
d416dbd274 qcacld-3.0: Remove platform dependency for crypto
Use OS standard crypto APIs instead of platform wrapper APIs.

CRs-Fixed: 1014363
Change-Id: I359b50890ec757c294cac405b46881b44881e8c8
2016-05-23 11:45:52 -07:00
Yuanyuan Liu
eaa6b6ef56 qcacld-3.0: BMI: Use PLD APIs
PLD is a interface between CLD and CNSS/ICNSS. It hides
CNSS/ICNSS APIs from CLD and provides a set of common APIs.
CLD modules should use these PLD APIs instead of calling
CNSS/ICNSS platform APIs.
Replace all CNSS/ICNSS APIs with PLD APIs in BMI.

CRs-Fixed: 1013853
Change-Id: I1e244ec9f9fd604a9b231b6ff1085f7b6b4bab22
2016-05-23 11:43:53 -07:00
Vishwajith Upendra
7f17ee7515 Release 5.1.0.9
Release 5.1.0.9

Change-Id: I41569dd88864ae943b6b3c777be582c698440cdd
CRs-Fixed: 688141
2016-05-20 17:13:10 -07:00
Houston Hoffman
fff7b2333b qcacld-3.0: Use hif_hw_version for chip versions
Remove duplicate chip version #defines.

Change-Id: Ic869aefb0949eb03b9b359f35810e1ba43a19d80
CRs-Fixed: 1012824
2016-05-19 11:05:08 -07:00
Akash Patel
91edc816eb Release 5.1.0.8
Release 5.1.0.8

Change-Id: I4b7992267b8fc832bf42ea3d10bd18c6d028b371
CRs-Fixed: 688141
2016-05-18 16:35:15 -07:00
Mohit Khanna
043efbd6ae qcacld-3.0: Fix race condition between tx traffic and peer deletion
A race condition has been observed between outgoing TX traffic and
peer deletion when DUT has concurrent SAP(DBS) and STA sessions in 5G
and 2G respectively and the peer connected to SAP moves away triggering
peer deletion at DUT. Due to peer being deleted, the vdev corresponding
to the peer is void which results in a crash in ol_tx_data function
while trying to send Tx data.

Fix crash by checking for a null vdev in ol_tx_data.

CRs-Fixed: 1012681
Change-Id: Id0aab4b1f03ed24dfb55e09fa1a115edfdfcce84
2016-05-18 16:35:10 -07:00
Anurag Chouhan
fbaefe270f qcacld-3.0: CL 1501516 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation.

Addition of CBF stats for 160MHZ

Change-Id: I85b034967b9dc5b140472d864de3ec5aea83eda7
CRs-Fixed: 865207
2016-05-18 16:35:01 -07:00
Anurag Chouhan
b36db51a55 qcacld-3.0: CL 1501755 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation.

NAN Data Path WMI changes DATA END and CONFIRM messages

Change-Id: I6edaff37931db83d057e1ddb1e9952e2b0dc87aa
CRs-Fixed: 865207
2016-05-18 16:34:57 -07:00
Anurag Chouhan
86eab9be3d qcacld-3.0: CL 1498085 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation.

WMI changes to handle action frames of different category in WoW mode

Change-Id: Icbf9ad7cac93dd75ddb976a0f781e20b60201896
CRs-Fixed: 865207
2016-05-18 16:34:47 -07:00
Anurag Chouhan
2d5c12c8e0 qcacld-3.0: CL 1496762 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation.

WMI service flag for half-rate + quarter-rate support

Change-Id: I6109a2e5f347c88f7696dadfe85a8ca4364cb0d7
CRs-Fixed: 865207
2016-05-18 16:34:39 -07:00
Anurag Chouhan
cc474b7665 qcacld-3.0: CL 1494723 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation.

Add WMI interface changes to send buckets_scanned bitmask per each scan
cache entry that is sent when WMI_EXTSCAN_GET_CACHED_RESULTS_CMDID

Change-Id: I284e6044c713c48dd3887852e1d1f6e8f85439a7
CRs-Fixed: 865207
2016-05-18 16:34:34 -07:00
Anurag Chouhan
b3fa7a1d57 qcacld-3.0: CL 1492713 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation.

WMI changes for adaptive dwell time scan.

Change-Id: Ibdd1bdd607b3acac5d55312ee2595c32892c89b5
CRs-Fixed: 865207
2016-05-18 16:34:24 -07:00
Anurag Chouhan
90c1a18590 qcacld-3.0: CL 1491974 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation

Add new WMI event for tx power stats.

Change-Id: Ic14b1c3c3538f5e1a62b69535c27108152f7076d
CRs-Fixed: 865207
2016-05-18 16:34:19 -07:00