Commit 6e7d320
committed
fix: dynamically detect WiFi interface instead of hardcoding wlan0
On Jetson Orin Nano, the USB WiFi dongle uses predictable interface naming
(wlx* prefix) instead of the legacy wlan0 name. This caused the WiFi
hardware test to always fail on DB26J robots.
- Add _detect_wifi_interface() helper that checks robot hardware type
and scans netifaces for wlx*/wlp* interfaces on Orin Nano
- Falls back to wlan0 on all other platforms (Jetson Nano, RPi, etc.)
- Change wifi_interface default from 'wlan0' to None (auto-detect)
- Update test description to show the actual detected interface name
DTSW-76831 parent 412fde6 commit 6e7d320
File tree
1 file changed
+28
-4
lines changed- packages/ros_http_api/include/hardware_test_wifi_dongle
1 file changed
+28
-4
lines changedLines changed: 28 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
7 | 31 | | |
8 | 32 | | |
9 | 33 | | |
10 | | - | |
| 34 | + | |
11 | 35 | | |
12 | | - | |
| 36 | + | |
13 | 37 | | |
14 | 38 | | |
15 | 39 | | |
16 | 40 | | |
17 | 41 | | |
18 | 42 | | |
19 | 43 | | |
20 | | - | |
| 44 | + | |
21 | 45 | | |
22 | 46 | | |
23 | 47 | | |
| |||
0 commit comments