Commit Graph

880 Commits

Author SHA1 Message Date
Amar Singhal
c1f9c1af05 qcacld-3.0: Remove sub-ctl codes.
Firmware does not require the sub-ctl codes from the host. Therefore,
remove the calculation of sub-ctl codes from the host APIs. Also
remove the associated data structures.

Change-Id: Ib5d5f074b45f2dae2bb9a7c172ee7f8750ad5355
CRs-Fixed: 961806
2016-04-17 17:05:12 -07:00
Amar Singhal
76b4132090 qcacld-3.0: Define correct country codes
Define the correct country codes per the data published by the
regulatory compliance team.

Change-Id: I2474acb2657ba1e4a0f62aef013df296aebfcb53
CRs-Fixed: 961806
2016-04-17 17:05:12 -07:00
Archana Ramachandran
393f3796b6 qcacld-3.0: Dynamic antenna switch in disconnected/station mode feature
Functionality for switching antenna mode (TX/RX chains)
from 1x1 to 2x2 and vice versa dynamically without reloading
the driver. This feature is currently supported in the
disconnected state where only scan operation can happen and
standalone station mode.

The changes include the following:
1. Driver command IOCTL to set/get antenna mode as follows
DRIVER SETANTENNAMODE <# of streams>
DRIVER GETANTENNAMODE

2. Processing SETANTENNAMODE and GETANTENNAMODE to dynamically
change the number of TX/RX chains as follows

Dynamic switch request is allowed only when the supported
number of chains in the system is greater than 1.

Dynamic antenna switch is achieved by sending
WMI_PDEV_SET_ANTENNA_MODE command to the FW chain mask
manager with parameters to change the number of TX/RX chains.
This request will be maintained by the chain mask
manager and applied whenever only one MAC is active.

If there is a station association followed by dynamic switch
to 1x1 mode then SM power save IE is included in the HT caps
of the association/reassociation request management frame.

Dynamic switch in the connected standalone station mode is
achieved by sending SMPS force mode command with appropriate
values for smps mode by the chain mask manager.

Change-Id: I65d51d173a627dc2751ef10cc2172a5215e7b8db
CRs-Fixed: 931250
2016-04-17 17:05:12 -07:00
Archana Ramachandran
fec2481466 qcacld-3.0: Do not send SMPS force mode on dynamic antenna mode switch
When dynamic antenna selection requests to change the number of
TX/RX chains, the FW chain mask manager will take care of sending
the corresponding SMPS action frames to the AP to put the station
in 1x1 or 2x2 mode. The host driver should only handle setting
the right SMPS mode in the HT capabilities of association
or re-association requests.

CRs-Fixed: 931250
Change-Id: I9bedcc5024a98040f571f730ff084f6fe3e3ad00
2016-04-17 17:05:12 -07:00
Archana Ramachandran
20d2e23fca qcacld-3.0: Enable station SMPS only if the session supported NSS > 1
If HT SMPS is enabled and if the session supported NSS > 1
then include SMPS IE in the HT capabilities of the association
and the reassociation management frame.Enabling SMPS with an AP
whose capability is only 1x1 will result in association/reassociation
request being rejected or an unexpected behavior. Send SMPS force mode
to FW to trigger SMPS action frame only if SMPS is enabled in the
INI. For dynamic antenna switch, the chain mask manager will send
the SMPS action frames.

CRs-Fixed: 931250
Change-Id: Ifff2ef2c8790994a68e676b8bba2fb03c21370d4
2016-04-17 17:05:12 -07:00
Archana Ramachandran
a20ef8127d qcacld-3.0: Dynamic antenna selection request/response messages
Add support to request for antenna mode to FW to switch from
1x1 to 2x2 and vice versa dynamically and process the response
status of whether the request was sent successfully.

Change-Id: Ie4b0b36981423f9325c48c7ebad445d5cc1f2a21
CRs-Fixed: 931250
2016-04-17 17:05:12 -07:00
Archana Ramachandran
d41c3ed58c qcacld-3.0: Add interface files for dynamic antenna selection
Add interface files for dynamic antenna selection feature

CRs-Fixed: 931250
Change-Id: Ieafe368a25c3a69e32cd5de6822ef84130528096
2016-04-17 17:05:12 -07:00
Chandrasekaran, Manishekar
d3cb4778fe qcacld-3.0: Fix potential static code analysis issues
Fix potential null pointer access during sap open
session and validation of the session id which could
be reported during static code analysis.

Change-Id: I6146c7223c586df06c08c76abd9e38a3c1ad1c4b
CRs-Fixed: 979960
2016-04-17 17:05:12 -07:00
Chandrasekaran, Manishekar
6e9aa1b9cd qcacld-3.0: Avoid message handler of netlink APIs to be OS agnostic
Avoid message handler of netlink APIs to be OS agnostic. Retain the
message handler to get the concurrency matrix in HDD.

Change-Id: Ieb121512e3d8ae15678da46ed8425c07fd003f69
CRs-Fixed: 946161
2016-04-17 17:05:12 -07:00
Ryan Hsu
07495ea2e6 qcacld-3.0: Update wlan_hdd_add_virtual_intf for Kernel upgrade
Commit: 6bab2e19 ("cfg80211: pass name_assign_type to
rdev_add_virtual_intf)

Above commit add new parameter - name_assign_type to indicate the
ifname is set by userspace or generated by the kernel.

Also add this new param to all underlying interfaces, so that we can
get rid of the conditional flag interleave in APIs but only to the
toppest and lowest one.

Change-Id: I2233391f4e7313cf4134c975e14b6060ad852c5d
CRs-fixed: 966067
2016-04-17 17:05:12 -07:00
Gupta, Kapil
3e61707d7c qcacld-3.0: Add debug print for EAPOL msg
qcacld-2.0 to qcacld-3.0 propagation

Currently driver has debug print for EAPOL
but it doesn't tell whether its M1, M2 etc.
As part of fix, add debug print for M1-M4 msg.

Change-Id: I1eb4f9dac6520b1ce00cdfc3e0fcef721ae498d6
CRs-Fixed: 919617
2016-04-17 17:05:12 -07:00
Rajeev Kumar
8e3e283a82 qcacld-3.0: Add extended IBSS feature on qcacld-3.0
Add extended IBSS feature on qcacld-3.0

Change-Id: I7faaf646df363a74954defbef103afbb4b72af92
CRs-Fixed: 766181
2016-04-17 17:05:12 -07:00
Govind Singh
25a9578b3f qcacld-3.0: Remove unused WMI layer code
WMI layer is moved to converged repository.
Remove unused WMI layer code from cld3.1 codebase.

Change-Id: I6ca9d468ae9628f6b1d78a53917c9c67994e02dc
CRs-Fixed: 987362
2016-04-15 13:51:23 -07:00
Vishwajith Upendra
df1d46459b Release 5.1.0.5GG
Intermediate release to address cleanup proprietary
and old stale lines

Change-Id: Ie68c7f85ca0694ae5b54feb18e3a666982714ebb
CRs-Fixed: 688141
2016-04-13 22:52:05 -07:00
Prakash Dhavali
08abad6c0d qcacld-3.0: Cleanup proprietary and old stale lines
qcacld-3.0: Cleanup proprietary and old stale lines
Restrict build to msm8994,96,98,msmcobalt platform
variants.

Change-Id: Ic89ce4a786e884c24ab20ee201d9558f6cccc867
CRs-Fixed: 688141
2016-04-13 22:52:01 -07:00
Komal Seelam
faad20feb2 Release 5.1.0.5G
Rebase of 5.0.0.165 onto 5.1.0.4G

Change-Id: I7813c88803d912feea91609960bd6ed642fd05d7
2016-04-13 21:51:26 -07:00
Peng Xu
66162de29e qcacld-3.0: Fix firmware assertion caused by vdev delete
Currently the SME session is deleted during interface change API and
a new session is not opened until SAP is ready to start. This will
cause crash when scan API is invoked. This fix opens the SME session
after interface type is changed, so that it can be used to scan and
SAP later.

Change-Id: I3c4f8da14dbc70a3102fb1892bb101eb1a90a00d
CRs-fixed: 968572
2016-04-13 21:51:26 -07:00
Sandeep Puligilla
93a29ecadd qcacld-3.0: HDD: Add support for 2.4Ghz HT40 STA
- Add support for 2.4Ghz HT40 STA.
- Add HT40 OBSS scan start and stop operation.
- Add support for extraction of OBSS scan paramters from beacon
  and probe response

Change-Id: Idc69d4d17271864c1d3bc2c6e16f25eae73331b0
CRs-Fixed: 947086
2016-04-13 21:51:26 -07:00
Sandeep Puligilla
e087566368 qcacld-3.0: UMAC: Add support for 2.4Ghz HT40 STA
- Add support for 2.4Ghz HT40 STA.
- Add HT40 OBSS scan start and stop operation.
- Add support for extraction of OBSS scan paramters from beacon
  and probe response.

Change-Id: I58e8d72b8ee922f710af0474ed3efd0438fff3a7
CRs-Fixed: 947086
2016-04-13 21:51:26 -07:00
Tushnim Bhattacharyya
15596cf5c1 qcacld-3.0: Fix compilation issues with ocb functions
OCB header files shouldn't be under FEATURE_WLAN_CH_AVOID. During cld2.0 to
cld3.0 propagation ocb header file inclusion mistakenly got inside above
featurization. Relocate it outside the FEATURE_WLAN_CH_AVOID conditional.

Change-Id: Ib1cbc179dc0f5b769e18a4d7d8268081a25ede3f
CRs-Fixed: 975731
2016-04-13 21:51:25 -07:00
Kiran Kumar Lokere
5899f43818 qcacld-3.0: Remove obsolete StaRateMode related code
Remove obsolete StaRateMode related functionality.

Change-Id: Id051d9081a68adfa8e32dd7960caff06fd9b677a
CRs-Fixed: 980689
2016-04-13 21:51:25 -07:00
Kiran Kumar Lokere
9a733a7fcc qcacld-3.0: Remove WLAN_FEATURE_11AC feature flag
Remove WLAN_FEATURE_11AC feature flag

Change-Id: I8c521502a44f2e8a0647843cd7a972497e900c17
CRs-Fixed: 980682
2016-04-13 21:51:25 -07:00
Krishna Kumaar Natarajan
047e7d590e qcacld-3.0: Redefine dfs data structure to fix prealloc size concern
Redefine dfs filter type to avoid prealloc problem by making one
large chunk into multiple smaller chunks.

With current data structure, dfs attach was requesting huge chunk
of memory from the heap which results in failure. This change set
fixes the issue by modifying the data structure so that one
large chunk is made as multiple smaller chunks.

Change-Id: If944747de63a68d55a83b8595d0a07dd05f53dbe
CRs-Fixed: 975903
2016-04-13 21:51:25 -07:00
Krishna Kumaar Natarajan
59f546c6ac qcacld-3.0: Fix incorrect flags setting in peer assoc command
qcacld-2.0 to qcacld-3.0 propagation.

Fix incorrect flag setting while sending peer assoc command.

This change set will add a check before setting 40MHZ support bit
and shortGI support bit in the peer flags. If the peer is not HT
capable, these flags should not be set.

Change-Id: I89d43bd86b97637b291dc871aaf7e2a3269df853
CRs-Fixed: 974242
2016-04-13 21:51:25 -07:00
Yue Ma
da39642b24 qcacld-3.0: Fix compilation bug for LPASS feature
If CONFIG_WLAN_FEATURE_LPSS flag is not enabled, there will be
compilation errors due to missing definitions. Fix them by moving
inline funtions to the corresponding header file.

Change-Id: I90b55daeb0068b2ab40fbb27d650a5382681705c
CRs-fixed: 979523
2016-04-13 21:51:25 -07:00
Yue Ma
b8f2bb50a4 qcacld-3.0: Enable some features depending on ICNSS platform driver
Currently some features depending on platform driver are only enabled
when CNSS driver is enabled. Enable these features as well when ICNSS
driver is enabled.

Change-Id: I9c5296e888f81fcd40101f87d289f60f40f299e7
CRs-fixed: 979523
2016-04-13 21:51:25 -07:00
Amar Singhal
388b3f01f0 qcacld-3.0: Make regulatory code more readable
Re-write part of regulatory code to make more readable.
Rename variables to more intuitive names. Also simplify the
logic.

Change-Id: I4ab896d18a6b5f6e2f9c84884268e2af2077f74b
CRs-Fixed: 856727
2016-04-13 21:51:25 -07:00
Amar Singhal
b8d4f1575c qcacld-3.0: Change channel nomenclature
Change channel nomenclature to more appropriate names.

Change-Id: If7fcd832a35563896534bab425ca05b528e1de93
CRs-Fixed: 856727
2016-04-13 21:51:25 -07:00
Amar Singhal
7ccdc4ff47 qcacld-3.0: Remove 40mhz bonded channel from driver
40 mhz channel array is redundant and does not give the
correct channel bonding information. Therefore remove
these channels, bonding array, and its associated usage.

Change-Id: I913fb97cdc913b1a027d21b0df526dfd5cd5902f
CRs-Fixed: 856727
2016-04-13 21:51:25 -07:00
Amar Singhal
e4f28eedfd qcacld-3.0: Re-arrange regulatory code.
Re-arrange core regulatory code between HDD and CDS
layers. Move the OS dependent code to HDD.

Change-Id: I8ac26a48d0e8d613b2f6c23fd764e5cf94365c39
CRs-Fixed: 856727
2016-04-13 21:51:25 -07:00
Rajeev Kumar
d004abc6f3 qcacld-3.0: Fix compilation error caused by hdd_indicate_mgmt_frame
hdd_indicate_mgmt_frame is defined under CONFIG_CNSS feature flag
which is not defined for MSM8998 SNOC target. Fix this compilation
error by taking out definition of hdd_indicate_mgmt_frame from
CONFIG_CNSS feature flag.

Change-Id: I4b2de5d947ff4fdd21032d6b7e3d5fe4e9eb3eec
CRs-Fixed: 978800
2016-04-13 21:51:25 -07:00
Nirav Shah
36a87bfb6e qcacld-3.0: Use sta id to derive peer in ol_rx_data_cb
Derive peer from sta id in ol_rx_data_cb to
make sure that peer is still valid before
using peer to avoid NULL pointer dereference

Change-Id: I8f9219d4c6ffbfb207385b08bc704cc0f86a1e1b
CRs-Fixed: 962949
2016-04-13 21:51:25 -07:00
Govind Singh
a72a4e325d Release 5.1.0.4G
Rebase of 5.0.0.164 onto 5.1.0.3G

Change-Id: Ia080faea192c9da47bdf492535f2a42293a5ec17
CRs-Fixed: 688141
2016-04-13 21:51:25 -07:00
Manjunathappa Prakash
7b67e626c5 qcacld-3.0: During load/unload ignore pdev suspend ack timeout
qcacld-2.0 to qcacld-3.0 propagation

Ignore the ack timeout in case of load/unload, as FW is anyways going to
get reset. This handles the CDF_BUG assertion when FW crashed during
driver unload and wma_suspend_target fails to receive ACK for pdev
suspend.

Change-Id: I0883c5161c6db18cf7af2b0c0ca23573ecd985ba
CRs-Fixed: 911696
2016-04-13 21:51:25 -07:00
Gupta, Kapil
c68ad460fc qcacld-3.0: Add support for dense roam params
qcacld-2.0 to qcacld-3.0 propagation

In High dense environment roaming should be triggered early
at dense RSSI threshold which provide better throughput result.
Add support for dense roaming parameters to read from ini file
and send to FW with other roaming parameters

CRs-Fixed: 953579
Change-Id: Ia63bfdd1248b4507d988b019f07164a7c75566af
2016-04-13 21:51:24 -07:00
Kiran Kumar Lokere
40a9d8da1f qcacld-3.0: Remove the PS timer check in suspend req
FW can enter into suspend mode even if the BMPS is not enabled.
Hence the auto PS timer check is not required in suspend request.

Change-Id: Ic2b774cea10516ea0b23141922ba1e16aa33f395
CRs-Fixed: 974918
2016-04-13 21:51:24 -07:00
Ahmad Kholaif
30a966ecd7 qcacld-3.0: CL 1449067 update fw common interface files
Increase WHAL_DBG_CMD_RESULT_MAXCNT from 10 --> 11 (affects Helium only).

Change-Id: Id03083d3e791f7f5d3036b458e4a228765170553
CRs-fixed: 865207
2016-04-13 21:51:24 -07:00
Krishna Kumaar Natarajan
0379b59f95 qcacld-3.0: Fix memory leak in dfs module
Fix memory leak in dfs module by removing check for the board id.

During dfs_attach dfs_hw_bd_id was zero, so memory was allocated for
pulses_ext_seg but in wma registration process correct board was
updated. In dfs_detach while freeing the memory we check for the
board id and we leaked the memory for pulses_ext_seg.

Change-Id: Ica9719cc4cd67e895fad850c59c753d39473f46d
CRs-Fixed: 974299
2016-04-13 21:51:24 -07:00
Krishna Kumaar Natarajan
f1d6deee43 qcacld-3.0: Fix the timeout handler to handle add bss timeout
Fix the timeout handler to handle add bss request timeout.

wma_hold_req_timer is not defined to handle WMA_ADD_BSS_REQ. When
WMA_ADD_BSS_REQ times out, no response is sent back to SME which
results in SME command queue stuck. This change set will enable
wma_hold_req_timer to handle add bss request timeout.

Change-Id: I55ec44acafc3af717458134340075b55bca7cddf
CRs-Fixed: 975400
2016-04-13 21:51:24 -07:00
Krishna Kumaar Natarajan
bc7e494559 qcacld-3.0: Fix error in populating oem data capabilities
Fix the error in populating oem data capabilities by fixing
incorrect conditional logic.

populate_oem_data_cap API returns zero on success and that
was misinterpreted as failure in the caller. Caller returns
without doing proper assignment.

Change-Id: I579106cb62c08622e8e5ab933747faf671a1d5cd
CRs-Fixed: 975352
2016-04-13 21:51:24 -07:00
Ryan Hsu
3a0f5230d6 qcacld-3.0: Update rate_info_flag for Kernel upgrade
Commit: b51f3be ("cfg80211: change bandwidth reporting to explicit field")

Above commit clean up the rate flag and bandwidth info and is merged since
Kernel 4.0.

Remove bandwidth info from rate_info flag, and use a separate bw field
instead.

Change-Id: I655ed919f1069cc04ed71ee1f3d457e228734d33
CRs-fixed: 966065
2016-04-13 21:51:24 -07:00
Ryan Hsu
6bf33b327c qcacld-3.0: Update cfg80211_sched_scan_request for Kernel upgrade
Commit: 3b06d27 ("cfg80211: Add multiple scan plans for scheduled scan")

Above commit introduces the scan_plan to include the interval parameters,
to support configuring multiple sched scan, and is merged since Kernel 4.4.

Change-Id: I9e232cfd6f82408fb2e21bef905b6e044951089d
CRs-fixed: 966054
2016-04-13 21:51:24 -07:00
Ryan Hsu
a335c16780 qcacld-3.0: Update cfg80211_disconnected interface for Kernel update
Commit: 80279fb ("cfg80211: properly send NL80211_ATTR_DISCONNECTED_BY_AP
in disconnect")

Above commit is merged in Kernel 4.2, it introduces the new parameter
to indicate if the disconnect event is generated locally.

Change-Id: I016df3b400f5f4b8447676882df79fab6915a8f5
CRs-fixed: 966069
2016-04-13 21:51:24 -07:00
Ryan Hsu
8ecb0fa07a qcacld-3.0: Clean up cfg80211 del_station for Kernel upgrade
Commit: 89c771e ("cfg80211: Convert del_station() callback to
use a param struct")
Commit: 9885686 ("cfg80211: Specify frame and reason code for
NL80211_CMD_DEL_STATION")

These two commits have been merged in Kernel 3.19.

Add a kernel version macro to support this.
And refactor the inclusion of CFG80211_DEL_STA_V2 by adding a
helper function to clean it up, that way we can keep the flag
only in wlan_hdd_cfg80211.h/c as this is the cfg80211 interface
related changes.

Change-Id: I811065b7fa1cf2aee68cfe63c5cf78c2270e5af7
CRs-fixed: 963651
2016-04-13 21:51:24 -07:00
Ryan Hsu
e7bc3a73f6 qcacld-3.0: Clean up enum station_info_flags for Kernel upgrade
Commit: 319090bf ("cfg80211: remove enum station_info_flags")

The station_info_flags is removed from cfg80211.h since Kernel 4.0.
Since they're duplicate information that's already in nl80211 attributes.

One more small change needed:
  * remove STATION_INFO_ASSOC_REQ_IES, nl80211 interface use the length
    (assoc_req_ies_len) to check the existence

Change-Id: I9ed324c097ac300c7233f439d71540176744e425
CRs-fixed: 961351
2016-04-13 21:51:24 -07:00
Naveen Rawat
5b34c95e16 qcacld-3.0: Do not request ROC if already on correct channel
This is qcacld-2.0 to qcacld-3.0 propagation

If cfg80211_mgmt_tx_params.offchan is set, driver need not send ROC
if device is already on correct channel. Check current home channel
of associated adapter and if it is same as target channel requested
skip ROC request and directly send frame over the air.

Change-Id: Ib13a885437a4349702e1706b3a466af262813f8a
CRs-Fixed: 921117
2016-04-13 21:51:24 -07:00
Naveen Rawat
2546093dca qcacld-3.0: Fix memory leak for lim preauth timers at driver unload
This is qcacld-2.0 to qcacld-3.0 propagation

Fix memory leak at driver unload by freeing memory for lim preauth
timers.

Change-Id: I7be177e6c475a8f8fdc4cc7d2744e34a4bf5dbf5
CRs-Fixed: 960617
2016-04-13 21:51:24 -07:00
Krunal Soni
99752a11b3 qcacld-3.0: Splits function lim_process_assoc_req_frame
Splits function lim_process_assoc_req_frame into smaller sub functions

Change-Id: Iaf21b0d157e910b740ac3288039465bac43507c4
CRs-Fixed: 824222
2016-04-13 21:51:24 -07:00
Krunal Soni
e353194792 qcacld-3.0: Add support for changing FTM capability during runtime
Add VENDOR subcmd to support changing of Fine Time Measurement
capability
dynamically. This command can be used by user space application to
change
FTM capability. FTM capability set by user space is intersected with
capability set by firmware to compute new capability value.

Change-Id: I5f3a57e66f2c6a9f3fa8acc7e9da8cb23cb766e3
CRs-Fixed: 968594
2016-04-13 21:51:24 -07:00
Naveen Rawat
6186ff9600 qcacld-3.0: Reindent lim_fill_assoc_ind_wapi_info
This patch fixes multi-level indentation for function
lim_fill_assoc_ind_wapi_info()

Change-Id: I438309425a82bb76c4c31d463b6cead7c661e27b
CRs-Fixed: 824222
2016-04-13 21:51:24 -07:00