File tree Expand file tree Collapse file tree
br-ext-chip-sigmastar/configs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,9 +30,8 @@ BR2_PACKAGE_EXFATPROGS=y
3030BR2_PACKAGE_UBOOT_TOOLS=y
3131BR2_PACKAGE_ZLIB=y
3232# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
33+ BR2_PACKAGE_HOSTAPD=y
3334BR2_PACKAGE_IW=y
34- BR2_PACKAGE_WPA_SUPPLICANT=y
35- BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
3635BR2_TARGET_ROOTFS_CPIO=y
3736BR2_TARGET_ROOTFS_SQUASHFS=y
3837BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33set_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- }
4+ cat << EOF > /tmp/hostapd.conf
5+ ctrl_interface=/var/run/hostapd
6+ interface=wlan0
7+ hw_mode=g
8+ channel=1
9+ ieee80211n=1
10+ ieee80211ac=1
11+ wmm_enabled=1
12+ rsn_pairwise=CCMP
13+ wpa=2
14+ ssid=$( fw_printenv -n wlanssid || echo OpenIPC)
15+ wpa_passphrase=$( fw_printenv -n wlanpass || echo 12345678)
1116EOF
1217}
1318
@@ -41,7 +46,7 @@ case "$1" in
4146 start)
4247 iw wlan0 set txpower fixed $( fw_printenv -n wlanpwr || echo 1500)
4348 set_config
44- wpa_supplicant -B -i wlan0 -c /tmp/wpa_supplicant .conf
49+ hostapd /tmp/hostapd .conf -B
4550 udhcpd -S
4651 ;;
4752
You can’t perform that action at this time.
0 commit comments