Othernet-Project / Skylark_beta_tracker

0 stars 0 forks source link

Wifi Hotspot broken #10

Open 0ff opened 7 years ago

0ff commented 7 years ago

When using the flasher skylark-chip-flash-v4.2-1701041326+f85f1c1.vmflasher.ova the version of hostapd (hostapd v2.5 for Realtek rtl871xdrv) cannot parse the hostapd.conf file after it was changed once:

hostapd -dd -K -t -P /var/run/hostapd.pid /etc/hostapd.conf
1483228904.685351: random: Trying to read entropy from /dev/random
1483228904.686429: Configuration file: /etc/hostapd.conf
1483228904.687281: Line 9: unknown configuration item 'country'
1483228904.687930: 1 errors found in configuration file '/etc/hostapd.conf'
1483228904.688253: Failed to set up interface with /etc/hostapd.conf
1483228904.688541: hostapd_init: free iface 0xa43d8
1483228904.688790: Failed to initialize interface

Config file looks like this, I changed the cannel in the UI:

# hostapd configuration
#
# The default configuration provides AP functionality on wlan0 interface with
# no PSK and SSID of Outernet.
#
# This file is part of rxOS.
# rxOS is free software released under the
# GNU GPL version 3 or any later version.
#
# (c) 2016 Outernet Inc
# Some rights reserved.

interface=wlan0
driver=nl80211
hw_mode=g
ieee80211n=1

channel=7
ssid=Outernet
country=

The added country= obviously breaks it. Also, selecting any country doesn't fix it. So basically, you can't edit the config through the Web UI without breaking the hotspot mode.

GaryWSmith commented 7 years ago

"So basically, you can't edit the config through the Web UI without breaking the hotspot mode."

This is my experience as well.

0ff commented 7 years ago

Will probably be fixed in the next release by this commit: https://github.com/Outernet-Project/RxOS-UI2/commit/1d0d942cc569c6437c63b740178b8175d820f8ed