I basically trying to configure a linux laptop as a wifi router which other laptops and mobiles can connect to and then I can manipulate the traffic on for some network traffic testing (with lower bandwidths and caps etc.)
My hostapd config file is,
interface=wlan0 driver=nl80211 ssid=atest hw_mode=g channel=1 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wpa=3 wpa_passphrase=1234567890 wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP
but hostapd always fails, with -d option i see this,
random: Trying to read entropy from /dev/random Configuration file: /etc/hostapd/hostapd.conf nl80211: interface wlan0 in phy phy0 rfkill: initial event: idx=1 type=2 op=0 soft=1 hard=0 rfkill: initial event: idx=2 type=1 op=0 soft=0 hard=0 nl80211: Using driver-based off-channel TX nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress) nl80211: Register frame match - hexdump(len=2): 04 0a nl80211: Failed to register Action frame processing - ignore for now nl80211: Add own interface ifindex 4 nl80211: Set mode ifindex 4 iftype 3 (AP) nl80211: Failed to set interface 4 to mode 3: -95 (Operation not supported) nl80211: Interface already in requested mode - ignore error nl80211: Create interface iftype 6 (MONITOR) nl80211: New interface mon.wlan0 created: ifindex=16 nl80211: Add own interface ifindex 16 BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits) nl80211: Regulatory information - country=00 nl80211: 2402-2472 @ 40 MHz nl80211: 2457-2482 @ 20 MHz nl80211: 2474-2494 @ 20 MHz nl80211: 5170-5250 @ 40 MHz nl80211: 5735-5835 @ 40 MHz nl80211: Added 802.11b mode based on 802.11g information Completing interface initialization Mode: IEEE 802.11g Channel: 1 Frequency: 2412 MHz nl80211: Set freq 2412 (ht_enabled=0 sec_channel_offset=0) nl80211: Failed to set channel (freq=2412): -16 (Device or resource busy) Could not set channel for kernel driver wlan0: Unable to setup interface. Flushing old station entries Could not connect to kernel driver. Deauthenticate all stations nl80211: Remove interface ifindex=16 netlink: Operstate: linkmode=0, operstate=6 nl80211: Set mode ifindex 4 iftype 2 (STATION)
Any help with getting this to work would be very much appreciated.