summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-12-01Snap for 9358332 from edc11950a1b293b1a4a41bc4366360f1dd489290 to ↵aml_art_331813100aml_art_331813010aml_art_331711080aml_art_331612010aml_art_331413030android13-mainline-art-releaseAndroid Build Coastguard Worker
mainline-art-release Change-Id: I997aa1ebdbc754b53fc84e4d0ed5c5096e4a9a12
2022-11-29[automerger skipped] Merge "Use sp<T>::make to create the sp pointer for ↵TreeHugger Robot
EventLoopCallback" into sc-v2-dev am: 594fbc0702 -s ours am: 6521b8cb11 -s ours am skip reason: Merged-In Ia9505a2247bd129665ed3b1ca87f701f7e4c48f6 with SHA-1 73bb787e6e is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/20330539 Change-Id: I205a24b17c7d2470fa5e19ea2fa932891ebc1714 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-29[automerger skipped] Use sp<T>::make to create the sp pointer for ↵Chris Ye
EventLoopCallback am: f43bf30ead -s ours am: fa92d8dd28 -s ours am skip reason: Merged-In Ia9505a2247bd129665ed3b1ca87f701f7e4c48f6 with SHA-1 73bb787e6e is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/20330539 Change-Id: I9a3b37c779670cb2490367466c7774f07f3feaaf Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-29Merge "[conflict] [automerge] Use sp<T>::make to create the sp pointer for ↵TreeHugger Robot
EventLoopCallback 2p: a9de1657e9 am: 3081d564cd am: b0302d8c00" into tm-dev am: bfed347796 Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/20536681 Change-Id: I78924a7bda44f40e7e58b453889c9c1a7d6ffc02 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-29[automerger skipped] Merge "Use sp<T>::make to create the sp pointer for ↵TreeHugger Robot
EventLoopCallback" into sc-v2-dev am: 594fbc0702 -s ours am skip reason: Merged-In Ia9505a2247bd129665ed3b1ca87f701f7e4c48f6 with SHA-1 73bb787e6e is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/20330539 Change-Id: I12024c07801a9aa942a103ff1043f8bc7a91b230 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-29[automerger skipped] Use sp<T>::make to create the sp pointer for ↵Chris Ye
EventLoopCallback am: f43bf30ead -s ours am skip reason: Merged-In Ia9505a2247bd129665ed3b1ca87f701f7e4c48f6 with SHA-1 73bb787e6e is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/20330539 Change-Id: If4ca2c2b264120d8bf646343fdf5d6e82681ff96 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-29Merge "[conflict] [automerge] Use sp<T>::make to create the sp pointer for ↵TreeHugger Robot
EventLoopCallback 2p: a9de1657e9 am: 3081d564cd am: b0302d8c00" into tm-dev
2022-11-22Snap for 9320246 from 7d4cdd2fa45c78973b06981b4ec33d0cf563b691 to ↵Android Build Coastguard Worker
mainline-art-release Change-Id: I4ea1756251b5452ec155bb957245babdac3b9fb6
2022-11-22Merge "Use sp<T>::make to create the sp pointer for EventLoopCallback" into ↵TreeHugger Robot
sc-v2-dev
2022-11-22[conflict] [automerge] Use sp<T>::make to create the sp pointer for ↵Presubmit Automerger Backend
EventLoopCallback 2p: a9de1657e9 am: 3081d564cd am: b0302d8c00 Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/20330536 Bug: 260002531 Change-Id: I3ef020867a156ff1ba1309675df8d269a7fd5e53 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-22Use sp<T>::make to create the sp pointer for EventLoopCallback am: 73bb787e6eChris Ye
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/20330791 Change-Id: I194da422f8b1e2ce7f9cf8ed229a6eab251099b5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-21[automerge] Use sp<T>::make to create the sp pointer for EventLoopCallback ↵Presubmit Automerger Backend
2p: a9de1657e9 am: 3081d564cd Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/20330536 Change-Id: I7d326fddd0d46f3c21c2178682b410baa0dfad1d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31[automerge] Use sp<T>::make to create the sp pointer for EventLoopCallback ↵Presubmit Automerger Backend
2p: a9de1657e9 Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/20330536 Bug: 243362981 Change-Id: I9531005683840049538a0f24d44e029adc313434 Merged-In: Ia9505a2247bd129665ed3b1ca87f701f7e4c48f6
2022-10-31Use sp<T>::make to create the sp pointer for EventLoopCallbackChris Ye
In wificond, EventLoopCallback is derrived from MessageHandler, which is derrived from RefBase, so we should be using sp<T>::make to create the smart pointer so the incStrong will occur on the Refbase object. Bug: 243362981 Test: Flash hwasan build and do wificond scan, do not observe crash. Merged-In: Ia9505a2247bd129665ed3b1ca87f701f7e4c48f6 Change-Id: Ia9505a2247bd129665ed3b1ca87f701f7e4c48f6
2022-10-31Use sp<T>::make to create the sp pointer for EventLoopCallbackChris Ye
In wificond, EventLoopCallback is derrived from MessageHandler, which is derrived from RefBase, so we should be using sp<T>::make to create the smart pointer so the incStrong will occur on the Refbase object. Bug: 243362981 Test: Flash hwasan build and do wificond scan, do not observe crash. Merged-In: Ia9505a2247bd129665ed3b1ca87f701f7e4c48f6 Change-Id: Ia9505a2247bd129665ed3b1ca87f701f7e4c48f6
2022-10-31Use sp<T>::make to create the sp pointer for EventLoopCallbackChris Ye
In wificond, EventLoopCallback is derrived from MessageHandler, which is derrived from RefBase, so we should be using sp<T>::make to create the smart pointer so the incStrong will occur on the Refbase object. Bug: 243362981 Test: Flash hwasan build and do wificond scan, do not observe crash. Merged-In: Ia9505a2247bd129665ed3b1ca87f701f7e4c48f6 Change-Id: Ia9505a2247bd129665ed3b1ca87f701f7e4c48f6
2022-05-17Snap for 8603505 from 0e0e43bb5cb6479983df328bc5911fd6a4b1ce51 to ↵aml_art_331314010aml_art_331113000aml_art_331012050Android Build Coastguard Worker
mainline-art-release Change-Id: Ia523d921569bdae331ef02990bd60cefde782b56
2022-05-12Merge "wifi: Extend netlink message timout value" into tm-dev am: 0ad7df1117Les Lee
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/17984182 Change-Id: I020e77240067aae78fb902069b0e1acccdac8a65 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-10Merge "wifi: Extend netlink message timout value" into tm-devandroid13-devLes Lee
2022-05-10Snap for 8564071 from 1686f456a9e463486ef9948574936a5471cc40b3 to ↵Android Build Coastguard Worker
mainline-art-release Change-Id: Ie1404635131bb34e73f0337f4e7b5a10da6238ba
2022-05-05wifi: Extend netlink message timout valueLes Lee
In hotspot stress test, it happened netlink message timeout which causes wificond fail to set up AP interface. From the test result (b/227418662#comment39), it isn't reproducible if the timeout is extended to 1000ms. Also add more debug log in netlink socket for future debugging. Bug: 227418662 Test: Hotspot stress 3000 times as b/227418662#comment39 Change-Id: I9d7258383d68d5bd68e570a315eff9b7269e35f6
2022-05-05wifi: Handle world mode country code change am: fa78442ca9Les Lee
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/17892632 Change-Id: I223987484f30f9484819001de20ac941bb4e32c7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04wifi: Handle world mode country code changeLes Lee
In NL 80211 standard, there is no world mode value definition. The driver reports country code changed with NL80211_REGDOM_TYPE_WORLD when CC is world mode. PS: The general country code type is "NL80211_REGDOM_TYPE_COUNTRY" with country code value in NL80211_ATTR_REG_ALPHA2. Solution, query country code when country code is empty. Bug: 228215022 Test: Manual test Change-Id: I79e937616101b03dfbab389adf04f2482f79e6a1
2022-04-29Filter out invalid frequencies for PNO scan am: e0c8ad3477xshu
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/17477523 Change-Id: If7868f8ea852c88118b98215c17a8d7c83e2e8b3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-20Filter out invalid frequencies for PNO scanxshu
Make sure the list of frequencies used for PNO scanning is supported by the device, as invalid/unsupported frequencies will cause a PNO scan to fail. Bug: 194311187 Test: Manual testing with set-pno-request WifiShellCommand Change-Id: Ie8b7fa02281fd73d9250d9e5f0286851ef283b50
2022-04-08Fix using NULL as an integer am: 3568383464 am: 84d804fba8 am: 3668ca9432 ↵Colin Cross
am: 05333e1d4a Original change: https://android-review.googlesource.com/c/platform/system/connectivity/wificond/+/2058548 Change-Id: I9f777e78bd1a6422076c35226bc221ac8d39e480 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-08Fix using NULL as an integer am: 3568383464 am: 84d804fba8 am: 3668ca9432Colin Cross
Original change: https://android-review.googlesource.com/c/platform/system/connectivity/wificond/+/2058548 Change-Id: Ibad0b6e301ad743683a54e044abd9ab0dcc7d670 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-08Fix using NULL as an integer am: 3568383464 am: 84d804fba8Colin Cross
Original change: https://android-review.googlesource.com/c/platform/system/connectivity/wificond/+/2058548 Change-Id: I8106c9a26d8b4e8dda4d1def7693935132c481ff Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-08Fix using NULL as an integer am: 3568383464Colin Cross
Original change: https://android-review.googlesource.com/c/platform/system/connectivity/wificond/+/2058548 Change-Id: I299f15ad7d5ef46edb6c71607a4e1bb1ea65f084 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-07Fix using NULL as an integerColin Cross
PostTask is passing NULL as a Message, which is being treated as 0 and implicitly constructing a Message. It is valid to define NULL as std::nullptr, which cannot be treated as 0 and fails to build. This doesn't currently happen as this code is only compiled against bionic, which uses Clang's definition of NULL as 0. It does happen in another copy of this code that is compiled for the host, which when compiling against musl uses std::nullptr for NULL. Bug: 218888599 Test: m wificond Change-Id: I1f6e132ee68fa4f7c1480b250c0d6bd8a47e6baf
2022-03-26WiFi: Parse 11be 80211nl attributes am: bbc68975feAhmed ElArabawy
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/17395819 Change-Id: I2409da6f4b480c97724dea06716d94982b056829 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-24WiFi: Parse 11be 80211nl attributesAhmed ElArabawy
Bug: 216212018 Bug: 225145745 Test: Build Successful Change-Id: I827d8fb733cb662c9e56a6209091f2b6314bddda
2022-03-24[automerge] Update nl80211.h with latest from Android-13-5.15 Branch 2p: ↵Presubmit Automerger Backend
81f997b7e4 Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/17390748 Bug: 216212018 Bug: 225145745 Change-Id: I600cd0d8263fa367f58046f1630bdf74e3e41171
2022-03-24Update nl80211.h with latest from Android-13-5.15 BranchAhmed ElArabawy
The new file has definitions needed for 802.11-be (WiFi-7) support. Bug: 216212018 Bug: 225145745 Test: Build successful Change-Id: Ia0799e324c5ada0001939ebb6fd099b25909885e
2022-03-10Rename getMaxNumScanSsids to getMaxSsidsPerScan in wificond. am: bc01e8f02aGabriel Biren
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/17144525 Change-Id: I276b93b54517b92a23ec3bb737d24104b11aed16
2022-03-09Rename getMaxNumScanSsids to getMaxSsidsPerScan in wificond.Gabriel Biren
Bug: 223451099 Test: m Change-Id: I90813602a0088aef663209478976dfb8a7978a61
2022-03-08Add API to wificond to retrieve the max number am: baac74ad40Gabriel Biren
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/17034029 Change-Id: I468d9ef578ace08b258f1ce859a48b3e83407a8d
2022-03-08Add API to wificond to retrieve the max numberGabriel Biren
of SSIDs that the driver supports per scan. Bug: 140003257 Test: Manual test - log the proper value in wificond and compare against the value retrieved in the framework using the new API Change-Id: I60b26effcd5edefcd003179f31f8c4328775e6ec
2022-03-01Merge "wificond: Update BandWiphyIndexMap when country code changed" into ↵Sunil Ravi
tm-dev am: e2d8efbde2 Original change: https://googleplex-android-review.googlesource.com/c/platform/system/connectivity/wificond/+/17036354 Change-Id: I1f9a3a81bca5b45cc4a13ea908c9e4685313e15b
2022-03-01Merge "wificond: Update BandWiphyIndexMap when country code changed" into tm-devSunil Ravi
2022-02-28wificond: Update BandWiphyIndexMap when country code changedChenming Huang
There is a corner case when iface down and map removed, but country code change event received at this time, this map got updated. However, if wiphy_index got changed unexpectively (e.g, driver reload), this map won't updated in this latest valid wiphy_index and may lead to issue as scan failure. Bug: 212372558 Test: Manual - Set country code through shell command and confirmed from logs that the channel list is updated correctly according to the country code. Change-Id: I1b3282c45f3a4d98c746a1995e0d601182f63cdd Change-Id: Ifc8c33485fd428fd122da48e6f8197bfad4141d8
2022-02-22Add timed out test files to tidy_timeout_srcs am: 161ae5a4d1 am: 550066b45f ↵Chih-Hung Hsieh
am: fe88d3835f am: 8eaccb726f Original change: https://android-review.googlesource.com/c/platform/system/connectivity/wificond/+/1991058 Change-Id: I461cc2ef0140f190967a0a8203ff38ffdbf34fea
2022-02-22Add timed out test files to tidy_timeout_srcs am: 161ae5a4d1 am: 550066b45f ↵Chih-Hung Hsieh
am: fe88d3835f Original change: https://android-review.googlesource.com/c/platform/system/connectivity/wificond/+/1991058 Change-Id: I0ae2baa7fc1f94f83951d33c703f683374ba9224
2022-02-22Add timed out test files to tidy_timeout_srcs am: 161ae5a4d1 am: 550066b45fChih-Hung Hsieh
Original change: https://android-review.googlesource.com/c/platform/system/connectivity/wificond/+/1991058 Change-Id: Ib1373aa330389de6e5bbfa80a06c46b8ffcb1564
2022-02-22Add timed out test files to tidy_timeout_srcs am: 161ae5a4d1Chih-Hung Hsieh
Original change: https://android-review.googlesource.com/c/platform/system/connectivity/wificond/+/1991058 Change-Id: If44d48d414d40cd8ff93fac2747709ca5285bca9
2022-02-17Add timed out test files to tidy_timeout_srcsChih-Hung Hsieh
* Timed out runs do not show any warning messages. * These test files cannot finish clang-tidy runs with the following settings: TIDY_TIMEOUT=90 WITH_TIDY=1 CLANG_ANALYZER_CHECKS=1 * When TIDY_TIMEOUT is set, in Android continuous builds, tidy_timeout_srcs files will not be compiled by clang-tidy. When developers build locally without TIDY_TIMEOUT, tidy_timeout_srcs files will be compiled. * Some of these test modules may be split into smaller ones, or disable some time consuming checks, and then enable clang-tidy to run within limited time. Bug: 201099167 Test: make droid tidy-system-connectivity-wificond_subset Change-Id: I5866cd59e37a8580cbe51b0cd9d24376d4ed242a
2022-01-25WiFi: Basic support for 11beAhmed ElArabawy
In this commit, basic support for 11be is added. That includes 1. Adding of EHT preamble to list of preambles 2. Adding 320MHz bandwidth channels 3. Adding 11be to list of standards Bug: 198746544 Test: Pass Presubmit tests Change-Id: I1207de919d3b1f5e86a67a10c91dab7db704885d
2022-01-11wifi: Add new API to notify wificond of CC has changedLes Lee
When device doesn't support NL80211_CMD_REG_CHANGED, the wificond has no way to know the CC(country code) have changed. Add a new API to allow the wifi frameworks notify wificond daemon of country code has changed. Bug: 211573255 Bug: 212554181 Bug: 207426796 Test: ./system/connectivity/wificond/runtests.sh Test: Manual Test, CC changed will update supported band. Change-Id: I1158a7babf774e9604c591782478da0ec5c1c081
2021-12-14[automerger skipped] Merge Android 12 QPR1 am: b3bdce4aa7 -s ours am: ↵Xin Li
9ec3f1efbf -s ours am: 713fcbb7a3 -s ours am: 7f4f1cd67c -s ours am skip reason: Merged-In Iac4194fe385a55c888040f159a89fc787cbe06d5 with SHA-1 e6477d04c7 is already in history Original change: https://android-review.googlesource.com/c/platform/system/connectivity/wificond/+/1921973 Change-Id: I88fdb6b065e5b8bf4f8f97a0fb196c66a4644625
2021-12-14[automerger skipped] Merge Android 12 QPR1 am: b3bdce4aa7 -s ours am: ↵Xin Li
9ec3f1efbf -s ours am: 713fcbb7a3 -s ours am skip reason: Merged-In Iac4194fe385a55c888040f159a89fc787cbe06d5 with SHA-1 e6477d04c7 is already in history Original change: https://android-review.googlesource.com/c/platform/system/connectivity/wificond/+/1921973 Change-Id: I5dd0d36bcb1130e4de44b11a67244ac62810acb6