en:bpi-r3:wlan
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:bpi-r3:wlan [2022/10/02 13:36] – created - external edit 127.0.0.1 | en:bpi-r3:wlan [2023/06/08 17:06] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
+ | see too (especially for hostapd config): | ||
+ | [[..: | ||
+ | |||
+ | apt install hostapd iw wireless-regdb crda dnsmasq rfkill | ||
+ | iw reg set DE | ||
+ | |||
+ | WiFi connectors are U.FL | ||
+ | |||
+ | without rfkill hostapd does not start and prints this error: | ||
+ | |||
+ | Feb 12 09:56:39 bpi-r3 hostapd[2764]: | ||
+ | Feb 12 09:56:39 bpi-r3 hostapd[2764]: | ||
+ | |||
+ | and iw shows "(no IR)" after all channels | ||
+ | |||
+ | ubuntu does not have the crda tool and so cfg80211 needs the regulatory.db | ||
+ | |||
+ | it can be installed with wireless-regdb or copy regulatory.db and regulatory.db.p7s from https:// | ||
+ | |||
+ | to load the file cfg80211 needs to be compiled as module and it needs the CONFIG_CFG80211_WEXT option (else you get the error " | ||
===== BPI-R3 internal wifi ===== | ===== BPI-R3 internal wifi ===== | ||
+ | |||
+ | modprobe mt7915e | ||
< | < | ||
Line 771: | Line 793: | ||
* [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support | * [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support | ||
</ | </ | ||
+ | ==== hostapd-config ==== | ||
+ | 2g4-config (wlan0): | ||
+ | < | ||
+ | # | ||
+ | # | ||
+ | runs. | ||
+ | |||
+ | interface=wlan0 | ||
+ | driver=nl80211 | ||
+ | |||
+ | ssid=r3_AP0 | ||
+ | |||
+ | hw_mode=g | ||
+ | #channel=2 | ||
+ | #channel=4 | ||
+ | channel=1 | ||
+ | # | ||
+ | auth_algs=1 | ||
+ | # | ||
+ | wpa=2 | ||
+ | wmm_enabled=1 | ||
+ | wpa_passphrase=12345678 | ||
+ | wpa_key_mgmt=WPA-PSK | ||
+ | wpa_pairwise=TKIP | ||
+ | rsn_pairwise=CCMP | ||
+ | </ | ||
+ | |||
+ | 5g-config (wlan1): | ||
+ | < | ||
+ | ctrl_interface=/ | ||
+ | # | ||
+ | runs. | ||
+ | |||
+ | interface=wlan1 | ||
+ | driver=nl80211 | ||
+ | |||
+ | ssid=r3_AP1 | ||
+ | |||
+ | #2.4G | ||
+ | hw_mode=g | ||
+ | channel=1 | ||
+ | |||
+ | #5G-Support | ||
+ | country_code=DE | ||
+ | ieee80211n=1 | ||
+ | ieee80211d=1 | ||
+ | hw_mode=a | ||
+ | |||
+ | #34-50 step 2 | ||
+ | channel=36 | ||
+ | # | ||
+ | |||
+ | ieee80211h=1 | ||
+ | require_vht=1 | ||
+ | ht_capab=[GF][HT40+][SHORT-GI-20][SHORT-GI-40][RX-STBC1][DSSS_CCK-40] | ||
+ | vht_oper_chwidth=1 | ||
+ | vht_capab=[SHORT-GI-80][RX-STBC-1][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN] | ||
+ | |||
+ | #42 would be the centered frequency center channel number for 36 primary | ||
+ | #channel only if this were a 80 MHz channel, so the combination here is | ||
+ | #invalid. You would either need to change this to use vht_oper_chwidth=1 | ||
+ | #or set vht_oper_centr_freq_seg0_idx=0 if you want to use a 40 MHz | ||
+ | #channel. | ||
+ | |||
+ | #for ch36: | ||
+ | vht_oper_centr_freq_seg0_idx=42 | ||
+ | #for ch149: | ||
+ | # | ||
+ | |||
+ | #channel=60 | ||
+ | ieee80211ac=1 | ||
+ | wmm_enabled=1 | ||
+ | |||
+ | #security | ||
+ | wpa=2 | ||
+ | wpa_passphrase=12345678 | ||
+ | wpa_key_mgmt=WPA-PSK | ||
+ | wpa_pairwise=TKIP CCMP | ||
+ | # | ||
+ | auth_algs=1 | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | running hostapd: | ||
+ | |||
+ | hostapd -d hostapd_wlan0.conf &> / | ||
+ | hostapd -d hostapd_wlan1.conf &> / | ||
+ | |||
+ | |||
+ | Leds are not yet working properly (2g4 is mapped by mt76 driver and can be switched on manually but not off,5g led is still missing) | ||
+ | |||
+ | === Virtual SSID === | ||
+ | |||
+ | https:// | ||
+ |
en/bpi-r3/wlan.1664710611.txt.gz · Last modified: 2023/06/08 17:06 (external edit)