Wifi » History » Version 1
Alex Seferidis, 07/16/2025 02:08 PM
| 1 | 1 | Alex Seferidis | # Wifi |
|---|---|---|---|
| 2 | |||
| 3 | WiFi module is connected as USB device |
||
| 4 | (make sure meta-rtlwifi from step 01. Yocto is enabled, so the driver is installed on final image) |
||
| 5 | |||
| 6 | Copy file to /etc/wpa_supplicant.conf |
||
| 7 | Inside this file set SSID and Password |
||
| 8 | |||
| 9 | for debug only: |
||
| 10 | restart usb device |
||
| 11 | echo 0 > /sys/bus/usb/devices/2-1/authorized |
||
| 12 | echo 1 > /sys/bus/usb/devices/2-1/authorized |
||
| 13 | |||
| 14 | example commands: |
||
| 15 | |||
| 16 | Static IP: |
||
| 17 | --------- |
||
| 18 | ifconfig wlan0 192.168.1.205 #Set the static IP address, should be unique |
||
| 19 | wpa_passphrase WiFi xxxx > /etc/wpa_supplicant.conf #if password changed |
||
| 20 | route add default gw 192.168.1.1 #Router IP address |
||
| 21 | wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf |
||
| 22 | echo "nameserver 8.8.8.8" >> /etc/resolv.conf |
||
| 23 | echo "nameserver 8.8.4.4" >> /etc/resolv.conf |
||
| 24 | |||
| 25 | DHCP: |
||
| 26 | --------- |
||
| 27 | wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf |
||
| 28 | udhcpc -i wlan0 |
||
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | Channels: |
||
| 33 | CHANNEL FREQUENCY |
||
| 34 | 1 2412 |
||
| 35 | 2 2417 |
||
| 36 | 3 2422 |
||
| 37 | 4 2427 |
||
| 38 | 5 2432 |
||
| 39 | 6 2437 |
||
| 40 | 7 2442 |
||
| 41 | 8 2447 |
||
| 42 | 9 2452 |
||
| 43 | 10 2457 |
||
| 44 | 11 2462 |
||
| 45 | 12 2467 |
||
| 46 | 13 2472 |
||
| 47 | 14 2484 |
||
| 48 | |||
| 49 | |||
| 50 | Channel Frequency World N.America Japan |
||
| 51 | 1 2412 2401-2423 Yes Yes Yes |
||
| 52 | 2 2417 2406-2428 Yes Yes Yes |
||
| 53 | 3 2422 2411-2433 Yes Yes Yes |
||
| 54 | 4 2427 2416-2438 Yes Yes Yes |
||
| 55 | 5 2432 2421-2443 Yes Yes Yes |
||
| 56 | 6 2437 2426-2448 Yes Yes Yes |
||
| 57 | 7 2442 2431-2453 Yes Yes Yes |
||
| 58 | 8 2447 2436-2458 Yes Yes Yes |
||
| 59 | 9 2452 2441-2463 Yes Yes Yes |
||
| 60 | 10 2457 2446-2468 Yes Yes Yes |
||
| 61 | 11 2462 2451-2473 Yes Yes Yes |
||
| 62 | 12 2467 2456-2478 Yes avoided Yes |
||
| 63 | 13 2472 2461-2483 Yes avoided Yes |
||
| 64 | 14 2484 2473-2495 No No 11b onlyC |