Commit Graph

555 Commits

Author SHA1 Message Date
Krunal Soni
a8f946d75b qcacld-3.0: Reindent lim_process_auth_frame
This patch is to reindent lim_process_auth_frame

Change-Id: I7bd67b31574ba8da3c51b0948ef9f6f8d680c3ce
CRs-Fixed: 824222
2016-02-08 15:50:45 -08:00
Satish Singh
20e079ffa4 Release 5.0.0.160
Release 5.0.0.160

Change-Id: Ie65b9fdb1412a6d205e4b96d9c60d7847b7a2485
CRs-Fixed: 688141
2016-02-08 15:50:45 -08:00
Sandeep Puligilla
19ddda272c qcacld-3.0: Add wma handler for vdev delete and peer delete responses
- Add handler for the vdev delete and peer delete response at WMA.
- As part of timeout handler, assert if the response is not
  received in 3 seconds.

Change-Id: I7b20254013266414174f686e1f3918822adc65d8
CRs-fixed: 960173
2016-02-08 15:50:45 -08:00
Satish Singh
dd96ba9864 Release 5.0.0.159
Release 5.0.0.159

Change-Id: I3f104ce7093b6ba6d9a9bb166c519de998a8ac43
CRs-Fixed: 688141
2016-02-08 15:50:45 -08:00
Komal Seelam
98760bacd4 qcacld-3.0: Fix Compilation error on WLAN_FEATURE_11W disabled
eCSR_AUTH_TYPE_RSN_8021X_SHA256 is defined only when 11W feature
is enabled. The code is using the identifier
eCSR_AUTH_TYPE_RSN_8021X_SHA256 without conditional compilation.

Access eCSR_AUTH_TYPE_RSN_8021X_SHA256 under 11W feature flag.

Change-Id: I5e1e513c12cf526045991749a487ac89d1773659
CRs-Fixed: 947938
2016-02-08 15:50:45 -08:00
Wu Gao
2c3a80018b qcacld-3.0: Update channel width and center freq
qcacld-2.0 to qcacld-3.0 propagation
"cfg80211_chandef_create" doesn't support channel width "HT80". If
create chandef by it, channel width set to HT40 when working on
SAP VHT80 mode. Which cause a mismatch between supplicant and host
driver. Update channel width and center freq for VHT80 mode

Change-Id: I9c5734fca4bcc02436aea8684ca9d0b968eb1dee
CRs-Fixed: 944618
2016-02-08 15:50:44 -08:00
Abhishek Singh
be1849b417 qcacld-3.0: Move sta state to not connected after try disconnect
qcacld-2.0 to qcacld-3.0 propagation

If a connect is received with previous connect already in progress,
sta connect state is moved from connecting to disconnecting and
disconnect is initiated to stop the previous connect.

If previous is present in sme/roam pending queue the disconnect
will abort the previous connect by removing the cmd from pending
queue. In this case the connect state is not moved back to
not connected from disconecting.

Thus the current connect command fails and all new connect command
will fail as the connect state will always be in disconnecting state.

To avoid this, move the connect state to not connected, once try
disconnect is issued internally.

Change-Id: Ia563f85df84cb9dbb3d3a82bc97127d39e7b1421
CRs-Fixed: 961559
2016-02-08 15:50:44 -08:00
Deepak Dhamdhere
a2df6bb544 qcacld-3.0: Remove #ifdef FEATURE_WLAN_LFR from HDD
The condition #ifdef WLAN_FEATURE_LFR is used to include some of
the roaming code. It has been defined for all the recent driver
builds. Roaming code underneath is permanent part of the driver.

Remove #ifdef FEATURE_WLAN_LFR compiler flag from HDD so that the code
will always be compiled in.

CRs-Fixed: 936683
Change-Id: If5010bc1470a35b2f1516a5c5d10461352fd87fc
2016-02-08 15:50:44 -08:00
Gupta, Kapil
54a1699b94 qcacld-3.0: Remove RRM ie in Assoc Req based on AP capability
RRM ie should not be present in association req if AP doesn't
support 11k. As a part of fix add the check to append RMM ie only
if AP support 11k.

Change-Id: I4e521dbdbdd5b083360405f26913278788c86555
CRs-Fixed: 961737
2016-02-08 15:50:44 -08:00
Dhanashri Atre
48c2ae6f89 qcacld-3.0: Fix fw statistics parsing on the host
For iHelium, the flag AR900B is defined in the firmware however
it is not defined on the host. This is causing a mismatch in the
statistics structure between the host and the firmware.
Temporarily enable this flag on the host. Eventually, this flag will
be replaced by a iHelium specific flag on both the host and the firmware

CRs-Fixed: 964909

Change-Id: I1a13db22448a099ea51602108eb5626e878e2c2e
2016-02-08 15:50:44 -08:00
Govind Singh
6661529b7f qcacld-3.0: Fix IPA-uc callback in NON-SMP system
IPA callbacks need to be processed in tasklet
context in NON-SMP configuration as rx thread
is not used in NON-SMP context.
Hence Process IPA uc response in tasklet context
for NON-SMP configuration.

CRs-Fixed: 960302
Change-Id: I98d69dbdc1083f43035fe264bbee668e5efd5eee
2016-02-08 15:50:44 -08:00
Rakesh Sunki
f7f82e5131 qcacld-3.0: SAP DFS-3 Feature support in DFS layer
Introduce DFS-3 support changes in DFS layer.
Add support for per segment based queuing, processing
and pattern matching of the radar events in 80+80 channel
width mode,  when both segments are dfs.

Also, add support for parsing the new DFS-3 radar summary
report and extract the segment ID on which a phyerror is
seen.  Report the segment ID on which the radar has been
detected to the WMA layer to add only radar detected 80MHz
segment channels to be added to NOL in 80+80 MHz channel
width mode.

Change-Id: Ib9ed2122844cef5fde2b632accc8c798e86bf7a3
CRs-Fixed: 964262
2016-02-08 15:50:44 -08:00
Rakesh Sunki
8641f8a6b1 qcacld-3.0: SAP DFS-3 Feature support in WMA
Adding support for parsing the WMI_PHYERR_EVENTID
for DFS-3 in WMA event handler.  Configure the hw
board id to DFS module fetched from the wmi service
ready event.

Change-Id: I003fab790c7f46b54e5d41bcf1bbfa16f0cdc722
CRs-Fixed: 964262
2016-02-08 15:50:44 -08:00
Liangwei Dong
d7be7778d9 qcacld-3.0: correct phy_mode in hdd_chan_change_notify
qcacld-2.0 to qcacld-3.0 propagation

The sap Context related phyMode should be used
instead of the phyMode in hal. Otherwise, the incorrect
channel width will be reported to supplicant.

Change-Id: Ic0ce7861a786de5aef8b43c6aa0fde9f600b08b2
CRs-Fixed: 909668
2016-02-08 15:50:44 -08:00
Houston Hoffman
65a4a87ebd qcacld-3.0: move hif_bus_open to hif_open
Can consolidate these allocations.

Change-Id: I8af6fa459db62c99bf93ecdbd1dcd94bbee580a8
CRs-Fixed: 967256
2016-02-08 15:50:44 -08:00
Houston Hoffman
dc9c6c26b0 qcacld-3.0: Remove hif_claim_device
hif_claim_device does not serve a purpose in copy engine.
The usage and implementation of hif_claim_device need to be
reexamined for sdio and usb. It should not store the device
in a ce specific data structure.

Change-Id: I0847e152ae3a1ca57d5c6937d6929918063cc362
CRs-Fixed: 967244
2016-02-08 15:50:44 -08:00
Houston Hoffman
7f0c7f4735 qcacld-3.0: Remove epping context from cds
cds_get_context was not supporting epping.  Allow epping to manage its
own global context since it is a top level module.

Change-Id: Ic5faf885c83109162be141788a5f8871a4e35cef
CRs-Fixed: 967244
2016-02-08 15:50:44 -08:00
Kiran Kumar Lokere
5302ab6468 qcacld-3.0: Enable Tx beamformee in SAP mode
Currently Tx beamformee feature is enabled only in STA mode.
Add knob to enable or disable the Tx beamformee feature in SAP
mode

Change-Id: I6ea218b3bff6c973688aad716a3f1a3c8acc469b
CRs-Fixed: 963034
2016-02-08 15:50:44 -08:00
Kiran Kumar Lokere
fc2803db92 qcacld-3.0: Set the IMPS enable/disable based on INI
Send IMPS disable cmd to FW if IMPS is disabled in INI.

Change-Id: Ib5e663d1966ab059b69aa0b7a3bc92a99dd6368a
CRs-Fixed: 962402
2016-02-08 15:50:44 -08:00
Nirav Shah
d23104296e qcacld-3.0: Fix memory leak in case of fw reset stats command
Fix memory leak in case of txrx_fw_st_rst command where
we are not expecting any response from firmware.

CRs-Fixed: 964465
Change-Id: Iad91cb5557ef167d126ef68e07f02445ad7a0b97
2016-02-08 15:50:44 -08:00
Nirav Shah
55b45a080a qcacld-3.0: Use appropriate API to get total free descriptors
Use appropriate API to get total free descriptors for all
flow pool.

CRs-Fixed: 964984
Change-Id: I1ac40b2ce55743a65c6c487fd4055fe34ab61d2d
2016-02-08 15:50:44 -08:00
Naveen Rawat
df0a7e7a92 qcacld-3.0: Remove unnecessary lock from sme_roam_free_connect_profile
Remove unnecessary acquiring of SME lock in sme_roam_free_connect_profile
since this function does not access any SME structures.

Change-Id: I0ddafc4276ef5028b48fda0ae3ea4e6a0c23245e
CRs-Fixed: 958839
2016-02-08 15:50:44 -08:00
Naveen Rawat
22b1a93d52 qcacld-3.0: Fix definition of tx_timer_create macro
Add new argument for mac_ctx in definition of tx_timer_create macro
so that its caller can use any local variable name for mac context.
Currently pMac is hardcoded as first param in definition of the macro
which prohibits caller of that function from using any other name.

Change-Id: Id901424ba16846eab62c00a80d48a5c85c73bea6
CRs-Fixed: 824222
2016-02-08 15:50:44 -08:00
Naveen Rawat
dafda298f3 qcacld-3.0: Fix memory leak in hdd_send_re_assoc_event
In case kmalloc fail goto end of function and properly free
other possible allocated memory buffers.

Change-Id: I41d7577471b475b0a2a0daa83c6ffc845314ceb4
CRs-Fixed: 958755
2016-02-08 15:50:43 -08:00
Rajeev Kumar
fec3dbedc5 qcacld-3.0: Rename API cds_is_load_unload_in_progress
Rename API cds_is_load_unload_in_progress() to
cds_is_load_or_unload_in_progress() for clarity purpose.

Change-Id: I209c661ccee760f822d5df53577d822f3c741b37
CRs-Fixed: 964217
2016-02-08 15:50:43 -08:00
Rajeev Kumar
d8508cb9b8 qcacld-3.0: Fix cds_is_load_unload_in_progress API
cds_is_load_unload_in_progress is checking for both driver
load AND unload states. This is leading to all external threads
still enter in driver when driver has already started unload
clean up process. Fix this API to check either load OR unload
in progress driver states.

Change-Id: I4cd446393346bc5c085bc9a92ee68f46f1ec5097
CRs-Fixed: 964211
2016-02-08 15:50:43 -08:00
Rajeev Kumar
dbc886e319 qcacld-3.0: Add CDS SSR ready check for driver unload
Driver unload is not waiting for external threads to exit
before starting clean up process. Add CDS SSR ready check
for driver unload such that driver unload waits for all
external threads to exit before cleaning up driver data
structures.

Change-Id: Ic5ac1b770dea8e470ed8dcce50a4f66451f918f1
CRs-Fixed: 964151
2016-02-08 15:50:43 -08:00
Rajeev Kumar
98edb77f7b qcacld-3.0: Add kernel doc for wlan_hdd_cfg80211_change_iface
Add kernel doc for wlan_hdd_cfg80211_change_iface function.

Change-Id: I1616b60ba805a055b5b15fbc0bb1aa65ee7b56a3
CRs-Fixed: 964145
2016-02-08 15:50:43 -08:00
Sandeep Puligilla
c8f0c797a4 qcacld-3.0: Fix memory leak in scan
Free the scan request parameters after scan
request is posted to scan queue.

Change-Id: I370249f9ef6b4180a106acb5e6929351ad4a0467
CRs-Fixed: 964341
2016-02-08 15:50:43 -08:00
Sandeep Puligilla
a8d2f52f66 qcacld-3.0: Fix scan request memory leak
scan complete callback function is not
freeing scan request memory after scan completion.

Free the scan request memory after scan completion.

Change-Id: I2636e3b4576d2c86d88dc3e7684a196ed1838297
CRs-Fixed: 964244
2016-02-08 15:50:43 -08:00
Sandeep Puligilla
e2c9a956ba qcacld-3.0: SAP DFS-3 Feature support
Changes needed in protocol stack related to DFS-3 feature.

Change-Id: Iec8e4e336039f5b643b9d10ee6737203222683cf
CRs-Fixed: 964262
2016-02-08 15:50:43 -08:00
Krunal Soni
03a882bead qcacld-3.0: Fix all comments given as part of IBSS+STA code changes
Fix all the comments given during code review of IBSS+STA changes.

Change-Id: If675f55b612f9412c803fc3587a352c9967d1fbe
CRs-Fixed: 963738
2016-02-08 15:50:43 -08:00
Prashanth Bhatta
75fa9a1d99 qcacld-3.0: hdd: Refactor wlan_startup (phase 4)
In HDD, hdd_wlan_startup which is called by probe is beast of a
function to maintain. Over time it has grown to such an extent
that it is almost 800 lines of code with in a single function.
Divide the beast into logical smaller functions.

Fix style issues like conditional compilation with in the
function and other minor ones.

Change-Id: Iec2dc3aac934bbb90b87d4e8581e877e5b0a561c
CRs-fixed: 959287
2016-02-08 15:50:43 -08:00
Prashanth Bhatta
5f7c9b8c0e qcacld-3.0: hdd: Refactor wlan_startup (phase 3)
In HDD, hdd_wlan_startup which is called by probe is beast of a
function to maintain. Over time it has grown to such an extent
that it is almost 800 lines of code with in a single function.
Divide the beast into logical smaller functions.

Create separate functions to update country code from module
parameter and initialize thermal mitigations settings in SME.

Change-Id: I84cf611347a5abadc16eeb46fed90934913e09ed
CRs-fixed: 959287
2016-02-08 15:50:43 -08:00
Prashanth Bhatta
98f04d25ea qcacld-3.0: hdd: Refactor wlan_startup (phase 2)
In HDD, hdd_wlan_startup which is called by probe is beast of a
function to maintain. Over time it has grown to such an extent
that it is almost 800 lines of code with in a single function.
Divide the beast into logical smaller functions.

Make separate function to open the interfaces at probe time.

Change-Id: Ia0044f5b0d0f009950d62556e09928ac578a1d4b
CRs-fixed: 959287
2016-02-08 15:50:43 -08:00
Prashanth Bhatta
c2a16f6c55 qcacld-3.0: hdd: Refactor wlan_startup (phase 1)
In HDD, hdd_wlan_startup which is called by probe is beast of a
function to maintain. Over time it has grown to such an extent
that it is almost 800 lines of code with in a single function.
Divide the beast into logical smaller functions.

This is the first phase of changes to add a separate function to
allocate and initialize HDD context.

Change-Id: I35b6c95c1b09f853e83752123c44e8d21c8af50a
CRs-fixed: 959287
2016-02-08 15:50:43 -08:00
Satish Singh
89f98350e2 Release 5.0.0.158
Release 5.0.0.158

Change-Id: I4682e3242ba368aa7bd5907811f0365c6b135953
CRs-Fixed: 688141
2016-02-08 15:50:43 -08:00
Amar Singhal
a297bfa739 qcacld-3.0: More regulatory cleanups
Remove typedef tPowerdBm. Rename and use linux style for channel
enum, channel state, channel power and country source data
structures.

Change-Id: Iebc59e6f001ccdb403c7445f4cea02c6a8141366
CRs-Fixed: 856727
2016-02-08 15:50:43 -08:00
Amar Singhal
8ade126ff9 qcacld-3.0: Remove the 4.9 GHZ channels
Remove the 4.9 GHZ channels from the driver stack.
4.9 GHZ channels are not being used for any country,
so remove them.

Change-Id: I135f997bb4c8ad7a536596b4e89eb037f41e0c73
CRs-Fixed: 856727
2016-02-08 15:50:43 -08:00
Amar Singhal
fda6edaffa qcacld-3.0: Remove FEATURE_STATICALLY_ADD_11P_CHANNELS
FEATURE_STATICALLY_ADD_11P_CHANNELS was a temporary solution for
builds that were not defining DSRC channels in db.txt. That
restriction no more holds true. Also correct the list of DSRC
channels in function cds_is_dsrc_channel.

Change-Id: I1146ec9702a8eec801b635a276e981962dd42817
CRs-Fixed: 856727
2016-02-08 15:50:42 -08:00
Amar Singhal
7a1726aefe qcacld-3.0: Change regulatory data structures style
Change regulatory data structures and APIs to linux style.
Change the references to the data structures accordingly.
Leave data structures that would be deleted in subsequent
iterations as is.

Change-Id: I68dcd3485d3fb3d98f648b5844508356c3f3c29d
CRs-Fixed: 856727
2016-02-08 15:50:42 -08:00
Amar Singhal
7f1f3ecd53 qcacld-3.0 : Remove the local regdomain mapping
Remove the local country to regdomain mapping in the driver.
Return a fixed regdomain index 0 to the caller. Also update
copyright for cds_regdomain.h for 2015.

Change-Id: I33e0a861b0a3bd95b20becb2d765b8300688ec4c
CRs-Fixed: 856727
2016-02-08 15:50:42 -08:00
Srinivas Girigowda
fb796d1985 qcacld-3.0: Replace tSirMacAddr with cdf_mac_addr in tSirSmeAssocCnf
Replace tSirMacAddr with cdf_mac_addr in tSirSmeAssocCnf.

Change-Id: I0b267ad09aac1f44079477cfde8d13265c1f2264
CRs-Fixed: 898864
2016-02-08 15:50:42 -08:00
Srinivas Girigowda
1a245364d6 qcacld-3.0: Replace tSirMacAddr with cdf_mac_addr in tSirSmeDisassocReq
Replace tSirMacAddr with cdf_mac_addr in tSirSmeDisassocReq.

Change-Id: I9d0b77e0ce624c48ca0fea2774c0f63285793cee
CRs-Fixed: 898864
2016-02-08 15:50:42 -08:00
Srinivas Girigowda
dd3c513e76 qcacld-3.0: Replace tSirMacAddr with cdf_mac_addr in tSirSmeDisassocRsp
Replace tSirMacAddr with cdf_mac_addr in tSirSmeDisassocRsp.

Change-Id: Ia196615e99506b4fa80a7d611cdefd2e7d2150fa
CRs-Fixed: 898864
2016-02-08 15:50:42 -08:00
Srinivas Girigowda
e13cc34fa3 qcacld-3.0: Replace tSirMacAddr with cdf_mac_addr in tSirSmeDisassocInd
Replace tSirMacAddr with cdf_mac_addr in tSirSmeDisassocInd.

Change-Id: Icdf3420c24762f919df73d57dffdf1b51151a0e8
CRs-Fixed: 898864
2016-02-08 15:50:42 -08:00
Srinivas Girigowda
5f3c81a672 qcacld-3.0: Replace tSirMacAddr with cdf_mac_addr in tSirSmeDeauthCnf
Replace tSirMacAddr with cdf_mac_addr in tSirSmeDeauthCnf.

Change-Id: I16b399bcb76a6dd3fcc35c52e5822e988d4e5001
CRs-Fixed: 898864
2016-02-08 15:50:42 -08:00
Srinivas Girigowda
9efa10edc0 qcacld-3.0: Replace tSirMacAddr with cdf_mac_addr in tSirSmeDeauthRsp
Replace tSirMacAddr with cdf_mac_addr in tSirSmeDeauthRsp.

Change-Id: I7036160f39ff69be5f937a71769e057d8906f2d3
CRs-Fixed: 898864
2016-02-08 15:50:42 -08:00
Srinivas Girigowda
9cf95c5d6f qcacld-3.0: Replace tSirMacAddr with cdf_mac_addr in tSirSmeDeauthRsp
Replace tSirMacAddr with cdf_mac_addr in tSirSmeDeauthRsp.

Change-Id: I383f867f8847f66bc6f6e99ee2a56b4bc89ebe5b
CRs-Fixed: 898864
2016-02-08 15:50:42 -08:00
Srinivas Girigowda
9ee9a5c4cc qcacld-3.0: Replace tSirMacAddr with cdf_mac_addr in tSirSmeDeauthInd
Replace tSirMacAddr with cdf_mac_addr in tSirSmeDeauthInd.

Change-Id: Ic8203cb89b970d5efb4c99e5e570af95ac9f802e
CRs-Fixed: 898864
2016-02-08 15:50:42 -08:00