kopia lustrzana https://github.com/cyoung/stratux
WiFi-Direct tweaks, force 2.4Ghz on Pi4
rodzic
c1cbe73a4a
commit
9b63b67476
|
@ -57,7 +57,7 @@ function wifi-direct-start {
|
|||
pin=$1
|
||||
|
||||
/sbin/wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
wpa_cli -i wlan0 p2p_group_add persistent=0
|
||||
wpa_cli -i wlan0 p2p_group_add persistent=0 freq=2
|
||||
(while wpa_cli -i p2p-wlan0-0 wps_pin any $pin > /dev/null; do sleep 1; done) & disown
|
||||
ifup p2p-wlan0-0
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ctrl_interface=DIR=/var/run/wpa_supplicant
|
||||
driver_param=use_p2p_group_interface=1
|
||||
device_name={{.WiFiSSID}}
|
||||
device_type=1-0050F204-1
|
||||
device_type=6-0050F204-1
|
||||
p2p_go_intent=15
|
||||
p2p_ssid_postfix=-{{.WiFiSSID}}
|
||||
persistent_reconnect=1
|
||||
|
|
Ładowanie…
Reference in New Issue