summaryrefslogtreecommitdiff
path: root/qcwcn
AgeCommit message (Collapse)Author
2020-08-11wifihal: Update driver control param to check driver is readyandroid-11.0.0_r37android-11.0.0_r36android-11.0.0_r35android-11.0.0_r34android-11.0.0_r33android-11.0.0_r32android-11.0.0_r30android11-qpr2-releaseandroid11-qpr1-c-releaseVeerendranath Jakkam
Write driver control param and wait for successful update to make sure driver is ready in LONU model. Bug: 157090295 Test: Basic function test, SSR test Change-Id: Ia1a690305266baafabe4c2557723f464ca858db1
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-04-17Wifi-Hal: Add NAN iface type in dynamic creation of ifaceSwarn Singh
This change added interface name start from "wifi" as part of valid wifi interface name. Bug: 153852667 Bug: 154279995 Test: Pass wifi aware tests of CtsVerifier. CRs-Fixed: 2593436 Change-Id: Ic8154616c54905969e55b89c0a8f5cde923e5136
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
2020-03-15WiFi-HAL: Update qca-vendor_copy.h with latest as on 3/2/2020Vamsi Krishna
Update the WiFi-HAl as per the new interface definitions as needed. Bug: 140311866 Test: Wifi Regression Change-Id: I64b141468bd3a194d06e875ed4d3b782f0c9a4a3
2020-03-10WifiHal: Fix OOB read of ctrl buf while registering monitor sock am: 117593cf89Automerger Merge Worker
Change-Id: Icd749280d34eaf1deb19d7f73a0ee23db7828706
2020-03-10qcwcn: Heap-buffer-overflow in register_monitor_sock() of wifi hal am: ↵Automerger Merge Worker
0ed8dbf042 Change-Id: Id4458dba85b590cc2aed4dedf1ccfd3f93f43f29
2020-03-10Heap-buffer-overflow in send_nl_data() of wifi hal am: 0a1b211537Automerger Merge Worker
Change-Id: I694e87918f034d686a969e0d61a2a3e5f7cb2b9c
2020-03-05WifiHal: Fix OOB read of ctrl buf while registering monitor sockVinay Gannevaram
Boundary check for NLMSG length is not present, which would result in OOB read of the buffer during nla parse. Hence add required boundary checks before processing ctrl msg from wifihal clients. Also allocate required buffer for control events to the size of received nlmsg data Bug: 149836664 Test: Manual - Basic wifi sanity test CRs-Fixed: 2628103 Change-Id: Idc971a343f30e41f359180757f108a8c0dfe2a7e Signed-off-by: Vinay Gannevaram <quic_vganneva@quicinc.com>
2020-03-05qcwcn: Heap-buffer-overflow in register_monitor_sock() of wifi halVinay Gannevaram
This changes is to avoid the buffer-overflow in register_monitor_sock() where "nreg->monsock" is getting filled with the data of length "ctrl_msg->monsock_len" without the validation of length. Address this issue by have a length check done before filling the buffer. Bug: 149836664 Test: Manual - Basic wifi sanity test CRs-Fixed: 2604404 Change-Id: I36b7ac274bd4f92eceabd5bd6534c73ae5a9ae73 Signed-off-by: Vinay Gannevaram <quic_vganneva@quicinc.com>
2020-03-05Heap-buffer-overflow in send_nl_data() of wifi halVinay Gannevaram
In send_nl_data() function, the size of ctrl_msg can be greater than size of nl_msg structure. This can cause buffer overload due to out-of bound write in nl_msg->nm_nlh. Added a check for length of ctrl_msg to avoid the out-of-bound write. Bug: 149836664 Test: Manual - Basic wifi sanity test CRs-Fixed: 2605058 Change-Id: I73032dac6ce2f2e9ee7ede18b45b11a2b3f92053 Signed-off-by: Vinay Gannevaram <quic_vganneva@quicinc.com>
2020-01-28Merge "Stop using LOCAL_COPY_HEADERS" am: f526767014 am: db4bd17858 am: ↵Automerger Merge Worker
9ea329ed12 Change-Id: I121f7aa15028164dbe94773f362f1f40b3e34b3b
2020-01-27Stop using LOCAL_COPY_HEADERSDan Willemsen
All the users of this header are already using it as if LOCAL_EXPORT_C_INCLUDE_DIRS has been set. Bug: 130719878 Test: m libwifi-hal-qcom Test: treehugger Change-Id: I3c335b016208bfa5064f4a02f9f16447c6d29351
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-10-02Wifi-Hal: Clear received pointer on completion of Nan handle EventAjit Vaishya
Currently after processing of back to back Nan Event i.e. QCA_NL80211_VENDOR_SUBCMD_NAN and QCA_NL80211_VENDOR_SUBCMD_NDP, mNanVendorEvent is not clear properly. Due to this stale entry of mNanVendorEvent been accessing. Clear stale entry of mNanVendorEvent on completion of processing of Nan Event. Fixes: 141010724 Bug: 141010724 Test: CtsNetTestCases with hwasan CRs-Fixed: 2537045 Change-Id: I1342924d8da6f275ca0c1b4e043470a4f0680ac4
2019-06-26Merge "WIFIHAL: Fix use-after-free issue while freeing monitor socket list" ↵Vinay Gannevaram
into qt-r1-dev am: f2edcbeb9b Change-Id: I20557bfdbd095f1e1a8b47c8c860092cb7ad99c4
2019-06-26Merge "WIFIHAL: Fix use-after-free issue while freeing monitor socket list" ↵android-mainline-10.0.0_r9android-mainline-10.0.0_r7android-mainline-10.0.0_r5android-mainline-10.0.0_r4android-10.0.0_r36android-10.0.0_r35android-10.0.0_r34android-10.0.0_r33android-10.0.0_r32android-10.0.0_r31android-10.0.0_r30android10-qpr2-s4-releaseandroid10-qpr2-s3-releaseandroid10-qpr2-s2-releaseandroid10-qpr2-s1-releaseandroid10-qpr2-releaseandroid10-qpr1-mainline-releaseandroid10-mainline-media-releaseTreeHugger Robot
into qt-r1-dev
2019-06-13Wifi-Hal: Avoid accessing invalid memory while parsing pkt statsAjit Vaishya
am: 320302d001 Change-Id: I0197c57263b03bfdfcbe20bd094ed68d4d58700b
2019-06-13Wifi-hal: RX and Per packet fate stats for new pkt log version V2Ajit Vaishya
am: 1b30bee315 Change-Id: Ieba7e9b42fa9e5695392263e3e096642bde01e5b
2019-06-13Wifi-hal: TX Per Packet stats for V2 version.Ajit Vaishya
am: 32886cca7a Change-Id: I0c32710c95c4db6c881525e5c7ceb8a26804e33c
2019-06-13Wifi-Hal: Avoid accessing invalid memory while parsing pkt statsAjit Vaishya
Current implementation of packet stats parsing isn't validating remaining buflen, which might lead to accessing invalid memory location while parsing. To address this issue, we need to check whether received buflen is sufficient to parse the stat before reading the stats from nlmsg. While parsing pkt stats, the bufflen shall be decremented for all versions of packet log records. Add logic to decrement buflen for the missed versions also. Change-Id: I573a5158b97f2c2b1b59026a8ae14e23ffc8135f CRs-Fixed: 2422931 Bug: 130226017 Test: Manual Test, turn verbose logging and check pkt log
2019-06-13Wifi-hal: RX and Per packet fate stats for new pkt log version V2Ajit Vaishya
Current RX stats parsing structure differs with the recent architectures. Hence , the firmware / host indicates this need to parse the data with the updated structures through the version ( V2) and the parser is expected to adapt to the same. This commit introduces to parse pktlog stats based on PKT_LOG_V2 parsing structure and the rx rate calculation also differs based on this Version 2. Change-Id: Id0997296e93be15158cb9fd27b25067010227666 CRs-Fixed: 2402099 Bug: 130226017 Test: Manual Test, turn verbose logging and check pkt log
2019-06-13Wifi-hal: TX Per Packet stats for V2 version.Ajit Vaishya
Current TX per packet stats parsing logic cannot be used to parse TX stats for packet log new version V2, because of packet log structure format is different. This changes introduces to parse new packet log version V2, based on required OFFSET from received TX payload. Support to read packet log version i.e V1/V2/V3 by reading firmware version. Change-Id: Ie5c508bb2fd3e00674dd807c3003b00857d3f070 CRs-Fixed: 2402099 Bug: 130226017 Test: Manual Test, turn verbose logging and check pkt log
2019-06-10WIFIHAL: Fix use-after-free issue while freeing monitor socket listVinay Gannevaram
During cleanup of monitor socket list, entries are freed with out being deleted from the list. This results in accessing memory which was already freed. Hence deleting the entry before freeing it, so that list would have only valid entries. Bug: 133773150 Test: Manual Test CRs-Fixed: 2463143 Change-Id: Ic746c7527958f238c77ddd4fd6d98cb8abab67bb Signed-off-by: Vinay Gannevaram <quic_vganneva@quicinc.com>
2019-05-25WIFIHAL: Support to send nl requests through wifihalVinay Gannevaram
am: dceeae8916 Change-Id: I2342c7e3b8508daba646ade3d1adc891a2d016b9
2019-05-23wifi-hal: Map kernel error ENOBUFS to wifi-hal error codeRajeev Kumar
am: 5291a58156 Change-Id: Ie3cf5e2041d89ba5f62199573e295e028b96f10f
2019-05-23WIFIHAL: Support to send nl requests through wifihalVinay Gannevaram
Added support in wifihal to send nl messages on behalf of its clients. Since netadmin capabilities are given to wifihal, it is used as bridge to send nl messages to kernel Added support for clients to register for nl events. CRs-Fixed: 2424237 Bug: 131618408 Bug: 28340421 Test: Regression test Change-Id: If8b62733e1d298804e0be98918eb875fc52a4ad1 Signed-off-by: Srinivas Girigowda <quic_sgirigow@quicinc.com>
2019-05-23wifi-hal: Map kernel error ENOBUFS to wifi-hal error codeRajeev Kumar
Kernel error ENOBUFS is not mapped to any defined wifi-hal error code. Map ENOBUFS error to WIFI_ERROR_TOO_MANY_REQUESTS wifi-hal error. Change-Id: I1d372a70a713a25505849da1a6716650007a7f64 CRs-Fixed: 2439902 Bug: 130214647 Bug: 132599519 Test: Regression Test Signed-off-by: Rajeev Kumar <quic_rajekuma@quicinc.com>
2019-04-30Merge "Wifi-hal: Enable pktlog when verbose log on." into qt-devlesl
am: bdf118c219 Change-Id: I141103a6e1d2b389c07f5dc1c0ed6b5f68194c87
2019-04-30Merge "Wifi-hal: Enable pktlog when verbose log on." into qt-devandroid10-devTreeHugger Robot
2019-04-26Wifi-Hal: Pass the address of the global variable to NL callbackAjit Vaishya
am: 35c34d329c Change-Id: If649c1642e47cff632e97ae28d8a1a337a8df4dc
2019-04-25Wifi-hal: Enable pktlog when verbose log on.lesl
In current desgin, packet fate will start logging when log level change to “VERBOSE_DEBUG_PROBLEM”. But in current design, no any use case will change log level to “VERBOSE_DEBUG_PROBLEM”. Framework use “VERBOSE_REPRO_PROBLEM” when user turn on wifi verbose logging in developer option. Modify pkt ring buffer check condition to VERBOSE_DEBUG_PROBLE to enable pktlog with verbose on. Bug:74360031 Test: Manual Test Change-Id: I0d600797108055adafcedd4ac7664b3781c3b74c
2019-04-24Merge "Disable -Wimplicit-fallthrough unless src is fixed." am: 846ffa3252Chih-Hung Hsieh
am: 80441c10e0 Change-Id: Ie605016d03c4bc53ee1f07117d1b57ccae9795ba
2019-04-24Disable -Wimplicit-fallthrough unless src is fixed.Chih-Hung Hsieh
* Current -Wno-error=implicit-fallthrough caused clang-tidy assertion fault, see https://bugs.llvm.org/show_bug.cgi?id=39312 * We could enable this warning when source file is fixed. Bug: 117780134 Test: build with WITH_TIDY=1 Change-Id: I9b7a6be2556afb70d2a8327053e3b207ef32cef1
2019-04-19Wifi-Hal: Pass the address of the global variable to NL callbackAjit Vaishya
Current implementation passes the address of a local variable to the netlink control block callback, ending up to go out of scope if the callback is invoked after the scope for the current function ends (from where the registration happened), resulting in an invalid memory access. Address this issue by having the respective variable defined with a global scope. Change-Id: Ied10a8f17f20326864f80ac40b0ceac6791f6cd1 CRs-Fixed: 2427930 Bug: 129092516 Test: Manual test
2019-04-03Merge "SAR: Add handling of WIFI_POWER_SCENARIO_ON_BODY_BT"Ahmed ElArabawy
2019-04-02Wifi-Hal: Avoid infinite loop on pkt stats of V0 versionAjit Vaishya
Currently when hardware version received as NULL string, pkt_log sets to V0 version i.e. PKT_LOG_V0 and parsing of packet stats done by decrementing specified length mention in packet log header , in case of PKT_LOG_V0 this length is decrementing which makes parsing stuck to infinite loop. To overcome this, parsing length is decremented apart from V2 packet log version too. CRs-Fixed: 2422931 Bug: 129272032 Bug: 118484168 Test: Connect STA to AP and play youtube. Change-Id: I573a5158b97f2c2b1b59026a8ae14e23ffc8135f
2019-04-02Revert "Revert "Wifi-hal: RX and Per packet fate stats for new pkt log ↵Srinivas Girigowda
version V2"" This reverts commit 9584c413fae876e2883fc0e5a93a98df0f32d3ff. Bug: 129272032 Bug: 118484168 Test: connect STA to AP and play youtube. Change-Id: Id9396d04e6cd202867390dcb428a6177a8a89681
2019-04-02Revert "Revert "Wifi-hal: TX Per Packet stats for V2 version.""Srinivas Girigowda
This reverts commit 41d7798f68a93664a836c8b86c23addd3db9d17f. Bug: 129272032 Bug: 118484168 Test: Connect STA to AP and play youtube. Change-Id: If86b053c4e083cf1c01e7d7293d79706c6bb093e
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-03-23Revert "Wifi-hal: TX Per Packet stats for V2 version."Sunil Ravi
Bug: 129148201 This reverts commit 181078ab828d12786c457037cda2fa61a50ab188. Reason for revert: Regression observed in 3P App Launch which increased by ~204ms Change-Id: I9dda376c45b528a867d4ca87266e60475d60a3ee
2019-03-23Revert "Wifi-hal: RX and Per packet fate stats for new pkt log version V2"Sunil Ravi
Bug: 129148201 This reverts commit dbac4bd447d0bc8323a1fec31406475036072095. Reason for revert: Regression observed in 3P App Launch which increased by ~204ms Change-Id: I71513fcaa4d3aa0dfdad51b1e4d2845479d500cd
2019-03-18Wifi: Add ether type to sending offloaded packetvamsi krishna
In current implementation, the ether type used for offloaded packets is always hardcoded to IPv4 in lower layers. This commit adds support to specify ether type of offloaded packets from user space. Bug: 122487582 Test: Manual Change-Id: Ib3a5dcb92aa6b193eabbcff32cd5a1138dcd04d0 CRs-Fixed: 2398213
2019-03-12Wifi-hal: RX and Per packet fate stats for new pkt log version V2Ajit Vaishya
Current Rx stats parsing structure which is different from new packet log version i.e V2, so parsed RX per packet stats are coming in improper format and per packet fate stats format also is diff w.r.t V2 pkt log version, which leads to improper offset on received payload while parsing it. This commit introduces to parse pktlog stats based on PKT_LOG_V2 parsing structure and V2 based rx rate calculatio. Bug: 118484168 Test: Regression Test Change-Id: Id0997296e93be15158cb9fd27b25067010227666 CRs-Fixed: 2402099
2019-03-12Wifi-hal: TX Per Packet stats for V2 version.Ajit Vaishya
Current TX per packet stats parsing logic cannot be used to parse TX stats for packet log new version V2, because of packet log structre format is different. This changes introduces to parse new packet log version V2, based on required OFFSET from received TX payload. Support to read packet log version i.e V1/V2/V3 by reading firmare version. Bug: 118484168 Test: Regression test Change-Id: Ie5c508bb2fd3e00674dd807c3003b00857d3f070 CRs-Fixed: 2402099
2019-03-06Merge "WiFi-HAL: Add user hint sub-type to set country code commmand"Ahmed ElArabawy
2019-02-11wifi-hal: Add support handling NDPE attributePeng Xu
Add handling NDPE attribute in NAN capabilities. This allows the framework to enable or disable using of NDP attribute in NAN data request message. Bug: 113149569 Test: Manual Change-Id: If2ca515447fbd44bca3bc272ce5fd72718d7eb19 CRs-fixed: 2244053
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