Repository navigation
hi3516cv200: let iwlist scan cfg80211 drivers - #2760
Conversation
Both generic kernel configs of the family leave CFG80211_WEXT off, so wireless-tools cannot drive a cfg80211 dongle such as the mt7601u: iwlist, which the image ships, gets nothing back. The WebUI's Wi-Fi scan falls back to iwlist when wpa_cli has no answer, and wpa_cli never has one here, since no wpa_supplicant runs before a network is set and the configuration wlan_conf writes opens no control socket after. So the scan is empty on a camera that has joined a network as much as on one that has not (#2675). 51 board kernel configs in this tree already turn it on.
PR Summary by QodoEnable iwlist scans for cfg80211 dongles on hi3516cv200-family boards
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1. Untested Wi-Fi change ships to cameras
|
Problem
On hi3516cv200 and hi3518ev200, the WebUI's Wi-Fi page finds no networks with a cfg80211 dongle, even after the camera has joined one. A reporter on a hi3518ev200 with an MT7601U sees this while
wlan0is associated and has an address (#2675).The page tries two tools and neither can answer:
wpa_clineeds a control socket. Nowpa_supplicantruns before a network is configured, and the configurationwlan_confwrites has noctrl_interfaceafter one is.iwlistis in the image, but withCFG80211_WEXToff it cannot drive a cfg80211 driver.This turns the option on in both generic configs of the family. It fixes both states with one change, and 51 board configs in this tree already have it on.
Hardware tested on
Not run on a camera yet. No lab board here has an MT7601U. The diagnosis comes from reading the page's scan script and the kernel config, not from a kernel with the option on.
The Baolian 11R6W25-HX20Y device in OpenIPC/builder has its own kernel config and gets the same line in OpenIPC/builder#224. The reporter of #2675 can confirm on that image, and I'll add the result here.
Evidence
The reporter's camera, associated, with the scan still empty in the WebUI:
The camera's
iwis absent, and noiwlistoutput from a camera exists yet, before or after this change. To check on a built image:Change, from
git diff:ci-matrix.py --stdinbuildshi3516cv200_lite,hi3516cv200_neo,hi3518ev200_liteandhi3518ev200_ultimate. All four pass.Size, master's
latestagainst this PR's build log (squashfs, cap 5120 KB on the two 8 MB lite boards):The kernel with the option on, in QEMU (
-M hi3516cv200), from the OpenIPC/builder#224 build, which carries the same line. This shows the modules load, not that a scan works, because QEMU has no USB dongle:Scope
general/package/all-patches/linux/(those go to OpenIPC/linux)general/overlay/or in a sharedload_<vendor>script hardcodes a value specific to my boardLD_PRELOAD, and no binaries that cannot be rebuilt from source