summaryrefslogtreecommitdiff
path: root/qcwcn/wifi_hal/wificonfig.cpp
AgeCommit message (Collapse)Author
2020-04-17WifiHAl:Create separate create/delete virtual iface functionsandroid-mainline-12.0.0_r112android-mainline-11.0.0_r44android-mainline-11.0.0_r43android-mainline-11.0.0_r42android-mainline-11.0.0_r41android-mainline-11.0.0_r40android-mainline-11.0.0_r39android-mainline-11.0.0_r38android-mainline-11.0.0_r37android-mainline-11.0.0_r36android-mainline-11.0.0_r35android-mainline-11.0.0_r34android-mainline-11.0.0_r32android-mainline-11.0.0_r31android-mainline-11.0.0_r30android-mainline-11.0.0_r28android-mainline-11.0.0_r27android-mainline-11.0.0_r26android-mainline-11.0.0_r25android-mainline-11.0.0_r24android-mainline-11.0.0_r23android-mainline-11.0.0_r22android-mainline-11.0.0_r21android-mainline-11.0.0_r20android-mainline-11.0.0_r18android-mainline-11.0.0_r17android-mainline-11.0.0_r16android-mainline-11.0.0_r15android-mainline-11.0.0_r14android-mainline-11.0.0_r13android-mainline-11.0.0_r12aml_tz2_305400500aml_tz2_305400300aml_tz2_305400100aml_tz2_304500300aml_tz2_303900110aml_tz2_303900102aml_tz2_303800002aml_tz2_303800001aml_tz2_303200001android12-mainline-tzdata2-releaseandroid11-mainline-tethering-releaseandroid11-mainline-permission-releaseandroid11-mainline-os-statsd-releaseandroid11-mainline-networkstack-releaseandroid11-mainline-media-swcodec-releaseandroid11-mainline-media-releaseandroid11-mainline-extservices-releaseandroid11-mainline-documentsui-releaseandroid11-mainline-conscrypt-releaseandroid11-mainline-cellbroadcast-releaseandroid11-mainline-captiveportallogin-releaseandroid11-devaml_tz2_305400100Khanjan Desai
The function wifi_add_or_remove_iface was taking care for creation and deletion of virtual Iface. Added new separate functions that will perform create and delete operations instead of one single API. Bug: 153852667 Bug: 154279995 Test: Pass wifi aware tests of CtsVerifier. CRs-Fixed: 2633140 Change-Id: I3c175b1f5a59c6d022b2db51cfc72b48582ec3cf
2020-03-17WiFi-HAL: get base wlan interface index from global handleVeerendranath Jakkam
Instead of hardcoding base wlan interface as wlan0 get base wlan interface index from hal_info Bug: 140311866 Change-Id: I8f66207dfbcb791e02faa57a19460a4cedeaeca8
2020-03-15WiFi-HAL: Add support to configure thermal levelVamsi Krishna
Bug: 140311866 Change-Id: If376a9e40ab3a1ad948cd95b15f30ba42fcb19bb
2019-11-15Wifi: Modify log specifiers for 64bit hex numbersAhmed ElArabawy
This commit replaces "0x%lx" with PRIx64 macro for better portability of handling 64bit values in log messages. Bug: 144576287 Test: Builds passes successfully Change-Id: I8b8cd56c874f87e477b7a78b2c0e5197d77df483
2019-11-13feature_set change from 'int' to 'long'Ahmed ElArabawy
This commit makes some adjustments to accomodate the change of the feature_set from being an int (32 bits) into becoming a long (64 bits) Bug: 139354972 Test: Manual: Build succeeds Change-Id: I665b57707fa5b22dd847023c02c92e8513c9caf6
2019-03-29SAR: Add handling of WIFI_POWER_SCENARIO_ON_BODY_BTAhmed ElArabawy
This commit adds support for the WIFI_POWER_SCENARIO_ON_BODY_BT SAR scenario, and map it to the proper BDF table. Bug: Test: adb shell halutil -sar enable 5 Change-Id: I3013815acb022f1d395c260ae16e29c4093346c9
2019-02-06WiFi-HAL: Add user hint sub-type to set country code commmandPeng Xu
Add new user hint sub-type NL80211_USER_REG_HINT_CELL_BASE to wifi_set_country_code command if the feature is supported by host driver. Bug: 121154896 Test: Regression test Change-Id: Ie1c0da1cc75aba02809ffd0f5d76bdb4f2ec680c CRs-fixed: 2205885
2019-01-16WiFi-Hal: Add support for Wi-Fi latency mode featureSrinivas Girigowda
Add support to set Wi-Fi latency mode in host driver using Wi-Fi HAL. Supported latency modes are NORMAL, MODERATE, LOW and ULTRA LOW. Bug: 118642535 Test: $ adb shell halutil -latency <mode (normal/low/ultra-low)> Change-Id: I4028c2c3c1a5950e9b6bd79f4f04766b8ce309c8
2019-01-16WiFi-Hal: Sync qca-vendor_copy.h to upstream qca-vendor.hSrinivas Dasari
Sync qca-vendor_copy.h to upstream qca-vendor.h and remove duplicate enums/defines from vendor_definitions.h Bug: 121155020 Test: Manual CRs-Fixed: 2290651 Change-Id: I44e1c955ff2e4b207063ce5d7b88bb2bb8fb4ed6
2018-03-30WiFi-Hal: Correct the mapping of wifihal error codesSrinivas Dasari
Correct the mapping of wifihal error codes. Bug: 70872935 Change-Id: Ic8bf0e6796a4e84ec6b540a34af1e202d9501d9e (cherry-picked from 03ef1ab7c2dc2075d7691a396fc7f2547742ede6)
2018-01-26WiFi: Add more Power Limit Scenarios for SARAhmed ElArabawy
This commit extends SAR by adding more scenarios to handle near body/head cases Bug: 65174506 Test: Manual Change-Id: I8d78fdcb3540a3371e18aef73d9f2700ff204e01 Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2017-12-14WiFi-Hal: Clean up the return codes in wifi-halSubhani Shaik
Use error codes from "enum wifi_error" throughout the wifi-hal. Convert the error codes returned by kernel to "enum wifi_error" codes appropriately before passing them to upper layers. Change-Id: I62937e3c7870ba1b48b8aeedf38c89c2424532b4 (cherry-picked from d54aafdb39c095318c7fecab6551e018297069ed)
2017-07-28Wifi-Hal: Modify tx power API am: 9aebcc18e7Subhani Shaik
am: 4f9b291b88 Change-Id: I4ff1c13ba9ab8c07f842654df8e636a7e177bf16
2017-07-27Wifi-Hal: Modify tx power APISubhani Shaik
Modify the current tx power API to select predefined power settings and apply the same from the BDF file Bug: 62437848 Test: Manual tests Change-Id: Ie0b5a837f4b4e221f7045b1276e02f510f22e256 (cherry-picked from 06dcdb8f68a3d5751e708cd431ae56e62f251e36)
2017-07-27Merge "WiFi-HAL: Map kernel returned error code to wifihal error" into ↵Subhani Shaik
oc-dr1-dev am: 6feb8575f2 Change-Id: I144bce707bd54ca850fb020bd75e979731218924
2017-07-27WiFi-HAL: Map kernel returned error code to wifihal errorSubhani Shaik
Framework expects error codes of type wifi_error from wifihal. Map the error codes returned by kernel to wifi_error value and return the same to framework Bug: 63971485 Test: Ran VTS tests on marlin. Change-Id: Ifbb8cdb9c1177da0c6715ee2a63d4299b71f74e3
2017-07-24Wifi-Hal: Over write kernel error codeSubhani Shaik
am: ae2eb26491 Change-Id: Ic5d7e73aefa61962b518e5983f153468e14f3637
2017-07-21Wifi-Hal: Over write kernel error codeSubhani Shaik
The VTS fails when kernel NOT_SUPPORTED is returned for Tx power test cases on devices where the support is not enabled. Over writing the WIFI_ERROR status to framework. BUG: 63683750 Test: VTS test passes now. (cherry-picked from 4e2da13b504ef6655fc651e20abd3235b97aa658) Change-Id: Ia18f3b3ca748971551c9c12ad206c21df7837eac
2017-07-11WiFi-HAL: Support to set tx_power_limits am: 1906cf3d29Subhani Shaik
am: 682b962975 Change-Id: I8129c6a48e90136f8648461f68ecc7af752b9784
2017-07-11WiFi-HAL: Support to set tx_power_limitsSubhani Shaik
Framework sends tx power limits to wifihal. Forward the same to WLAN driver with the help of nl80211 vendor command. Bug: 62437848 Test: Compiles Change-Id: I3073b98bacec33dc5ec544b8405330e820ed8bec (cherry-picked from 4735b5927aeb8ef7a4fa18a6f694be86478d3beb)
2017-06-30Building libwifi-hal-qcom with BOARD_VNDK_VERSIONJiyong Park
Add missing header dependency and include system headers such as unistd.h and pthread.h explicitly. Bug: 37342627 Test: BOARD_VNDK_VERSION=current m -j libwifi-hal-qcom Change-Id: Id844f42e02f5b1c83a697862204a52e8cdb8198d
2016-07-15WiFi-HAL: Fix CLANG warningsSrinivas Girigowda
Fix CLANG warnings. Change-Id: If07194f34abc44e1e58e8b38af59ec705a62ce55 CRs-Fixed: 1015162 Bug: 28825972
2016-04-14Wifi-HAL: demote some messages from DEBUG to VERBOSEmukesh agrawal
Originally part of https://partner-android-review.googlesource.com/#/c/558740 BUG=27698661 TEST=compile Change-Id: I7264dd7a0095c24bf1f183c9f929bb79ef095703
2015-09-11WiFi-HAL: Cleanup unnecessary logsAmarnath Hullur Subramanyam
Cleanup unnecessary logs from llstats, gscan, rssi monitor common and tdls modules. Change-Id: If66a8f61b11a101d84546a06514aeb5e0d8fcbfa Bug: 23942132
2015-08-20WiFi-HAL: Introduce a delay after country code setAmarnath Hullur Subramanyam
Querying for valid channels immediately after country code change may result in invalid channel list as kernel takes some time to populate the channels in driver. A little delay(50 ms) between set_country_code and get_valid_channels can solve the issue. Bug: 22937052 Change-Id: If252ca9512be1cbc9d0b3e4fc80cb703657fc6f2
2015-08-10WiFi-HAL: Removing usage of rand and srand functionsSubhani Shaik
Usage of rand and srand function is a moderate security vulnerability, thus removing the usage of this and replacing with arc4random. Change-Id: I5f24e96817bf3de09848f5626278ac65b00e07ed
2015-04-15Fix build issues after the mergeVinit Deshpande
Change-Id: Ia856311187a0b2168cb859bd8b2300ff59df6569
2015-03-27Wi-Fi HAL: add support for Wi-Fi Config through HALAmarnath Hullur Subramanyam
Add code changes in Wi-Fi HAL to support Wi-Fi configuration of Extended DTIM, Country Code, Beacon stats averaging factor and Guard Time. Android.mk file is also modified in order to compile the new wificonfig.cpp module Change-Id: I898b18deb4305ae6df3907bcbeca9968019dde02