Hi all,
I've setup a RasPi server here so it acts as a wireless router, I can run hostapd manually with the -B flag and it works exactly as needed, however it does not start automatically upon boot.
Code:
/etc/hostapd/hostapd.conf
# Basic configuration
interface=wlan0
ssid=MyNetwork
channel=11
#bridge=br0
# WPA and WPA2 configuration
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=**********
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
# Hardware configuration
driver=rtl871xdrv
ieee80211n=1
hw_mode=g
device_name=RTL8192CU
manufacturer=Realtek
I've got a wifi USB with the Realtek RTL8188CUS chip which I understood was a problem in the past but works fine manually now, however when I do start it manually it does provide a warning - not sure whether it's worth worrying about though or may it be the issue why the program doesn't start upon boot?
Quote:
ioctl[RTL_IOCTL_HOSTAPD]: Invalid argument
|
My /etc/default/hostapd file looks like:
Quote:
# Defaults for hostapd initscript
#
# See /usr/share/doc/hostapd/README.Debian for information about alternative
# methods of managing hostapd.
#
# Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration
# file and hostapd will be started during system boot. An example configuration
# file can be found at /usr/share/doc/hostapd/examples/hostapd.conf.gz
#
DAEMON_CONF="/etc/hostapd/hostapd.conf"
RUN_DAEMON="YES"
# Additional daemon options to be appended to hostapd command:-
# -d show more debug messages (-dd for even more)
# -K include key data in debug messages
# -t include timestamps in some debug messages
#
# Note that -B (daemon mode) and -P (pidfile) options are automatically
# configured by the init.d script and must not be added to DAEMON_OPTS.
#
#DAEMON_OPTS=""
|
Many thanks to you lovely people in advance