Skip to content

Commit c765b6f

Browse files
committed
Update ssc338q_apfpv_defconfig
1 parent cd54fc8 commit c765b6f

File tree

6 files changed

+16
-23
lines changed

6 files changed

+16
-23
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@
88
/cache
99
/openipc
1010
/output
11-
*.bin

devices/ssc338q_apfpv/br-ext-chip-sigmastar/configs/ssc338q_apfpv_defconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ BR2_PACKAGE_ZLIB=y
3333
BR2_PACKAGE_IW=y
3434
BR2_PACKAGE_WPA_SUPPLICANT=y
3535
BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
36-
BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
37-
BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
3836
BR2_TARGET_ROOTFS_CPIO=y
3937
BR2_TARGET_ROOTFS_SQUASHFS=y
4038
BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y
@@ -58,9 +56,11 @@ BR2_PACKAGE_LIBCURL_OPENIPC_CURL=y
5856
# BR2_PACKAGE_LIBCURL_OPENIPC_EXTRA_PROTOCOLS_FEATURES is not set
5957
BR2_PACKAGE_LIBEVENT_OPENIPC=y
6058
BR2_PACKAGE_LIBOGG_OPENIPC=y
59+
BR2_PACKAGE_MAJESTIC_FONTS=y
6160
BR2_PACKAGE_MAJESTIC_WEBUI=y
6261
BR2_PACKAGE_MAJESTIC=y
6362
BR2_PACKAGE_MBEDTLS_OPENIPC=y
63+
BR2_PACKAGE_MAVFWD=y
6464
BR2_PACKAGE_MSPOSD=y
6565
BR2_PACKAGE_OPUS_OPENIPC=y
6666
BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y
86.7 KB
Binary file not shown.
86.7 KB
Binary file not shown.

devices/ssc338q_apfpv/general/overlay/usr/bin/adapter

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
#!/bin/sh
22

3+
set_config() {
4+
cat << EOF > /tmp/wpa_supplicant.conf
5+
network={
6+
mode=2
7+
frequency=$(fw_printenv -n wlanfreq || echo 2412)
8+
ssid="$(fw_printenv -n wlanssid || echo OpenIPC)"
9+
psk="$(fw_printenv -n wlanpass || echo 12345678)"
10+
}
11+
EOF
12+
}
13+
314
case "$1" in
415
setup)
516
for card in $(lsusb | awk '{print $6}' | uniq); do
@@ -24,28 +35,12 @@ case "$1" in
2435
fi
2536

2637
echo "Detected driver: $driver"
27-
[ -e /sys/class/net/wlan0 ] && return
28-
29-
if [ "$driver" != "88XXau" ]; then
30-
opt1="rtw_tx_pwr_by_rate=0"
31-
opt2="rtw_tx_pwr_lmt_enable=0"
32-
fi
33-
34-
modprobe "$driver" "$opt1" "$opt2"
35-
sleep 3
36-
37-
if ! ifconfig wlan0 up; then
38-
echo "Wireless driver not found!"
39-
exit 1
40-
fi
38+
modprobe "$driver" rtw_tx_pwr_by_rate=0 rtw_tx_pwr_lmt_enable=0
4139
;;
4240

4341
start)
44-
ssid=$(fw_printenv -n wlanssid || echo OpenIPC)
45-
pass=$(fw_printenv -n wlanpass || echo 12345678)
46-
wpa_passphrase "$ssid" "$pass" > /tmp/wpa_supplicant.conf
47-
sed -i '2i \\tmode=2' /tmp/wpa_supplicant.conf
48-
#sed -i '3i \\tfrequency=5180' /tmp/wpa_supplicant.conf
42+
iw wlan0 set txpower fixed $(fw_printenv -n wlanpwr || echo 1500)
43+
set_config
4944
wpa_supplicant -B -i wlan0 -D nl80211 -c /tmp/wpa_supplicant.conf
5045
udhcpd -S
5146
;;

devices/ssc338q_apfpv/general/scripts/excludes/ssc338q_apfpv.list

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/etc/sensors/imx307.bin
2-
/etc/sensors/imx335.bin
32
/etc/sensors/gc2053.bin
43
/etc/sensors/gc4653.bin
54
/etc/sensors/sc501ai.bin

0 commit comments

Comments
 (0)