summaryrefslogtreecommitdiff
path: root/wifi/1.6/default/wifi_legacy_hal.cpp
AgeCommit message (Collapse)Author
2022-07-26Wifi: Add support to query and use driver advertised interface combinationPurushottam Kushwaha
Interface combinations in legacy-hal is predefined with 'WIFI_HAL_INTERFACE_COMBINATIONS' build flag. Netlink interface already provides supported interface combination via 'NL80211_CMD_GET_WIPHY' using attribute 'NL80211_ATTR_INTERFACE_COMBINATIONS' , thus build time dependency to configure interface combination for each target can be removed by querying the combination at runtime. Change-Id: I28f95b048de4b7b1ca49f16c3ef4afe7941bb25e CRs-Fixed: 3230634
2022-04-21Add HAL APIs for TX power limitsIsaac Chiou
To lower the instantaneous battery current draw of WiFi, we provide a way to allow PowerManager to enable/disable Tx power limits. In the legacy HAL, we call the API in Broadcom HAL to enable/disable WiFi TX power limits. Bug: 215193418 Test: New APIs work fine Change-Id: I1fbe71c3380514e2eba96adc5902d2028a55e006
2022-04-06wifi: Fix for returning wrong radio combinations matrixSunil Ravi
Allocate memory in heap for carrying radio combinations matrix from driver/firmware to wifi HAL. Bug: 225764376 Bug: 225762955 Test: atest WifiChipHidlTest Change-Id: I1049f7ab9f16a35a87b7cda34ba31797fde046e3
2022-01-29Add HAL APIs for WiFi CHRE NAN RTTIsaac Chiou
1. Add new APIs to enable/disable CHRE NAN RTT 2. Add a new API to register callback. This callback should report events from WLAN driver for CHRE. Test: New APIs work fine Bug: 206614765 Change-Id: I8c8ab002064a9556be2e7d3972703bb3255a3a41
2022-01-26wifi: Get the supported radio combinations matrixSunil Ravi
Added API to get the supported radio combinations of the chip. This is mainly to check if the chip is capable of multi band simultaneous operation. For Example in case of a chip which has two radios, where one radio is capable of 2.4GHz 2X2 only and another radio which is capable of either 5GHz or 6GHz 2X2, number of possible radio combinations in this case are 5 and possible combinations are: {{{2G 2X2}}, //Standalone 2G {{5G 2X2}}, //Standalone 5G {{6G 2X2}}, //Standalone 6G {{2G 2X2}, {5G 2X2}}, //2G+5G DBS {{2G 2X2}, {6G 2X2}}} //2G+6G DBS Bug: 208877624 Test: vts test Change-Id: I4c90f80002ca138133a575bca80dfdef2a593ab2
2022-01-25Wifi: API to set the indoor state of deviceSunil Ravi
If set, it indicates that the device is operating in an indoor environment. When driver receives this indication, it can safely enable WFD GO operation on indoor channels. Bug: 207671411 Test: Manual basic wifi tests Change-Id: I4cc4c22444f0796c280220534d43c4ae8cae0899
2022-01-12Wifi: Uprev wifi HAL to 1.6Ahmed ElArabawy
This commit uprevs the Wifi vendor HAL to 1.6 Bug: 214108561 Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \ VtsHalWifiV1_1TargetTest \ VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \ VtsHalWifiV1_3TargetTest \ VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest \ VtsHalWifiV1_5TargetTest VtsHalWifiNanV1_5TargetTest VtsHalWifiApV1_5TargetTest Change-Id: I059a5de346e353f7fba1e008ecd9fb4611e66880