LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 09-07-2012, 09:43 PM   #1
leos220
LQ Newbie
 
Registered: Sep 2012
Posts: 3

Rep: Reputation: Disabled
Unable to create second AP interface with hostapd 1.0 and rt2800pci


Greetings fellow Linux users,
I seem to be having a slight issue attempting to create a second AP using multiple BSS on my router (note it is running a modified version of IPCop, with custom kernel). I have no problem creating the first AP, however the second BSS's interface is being automatically removed by hostapd. I've tried following the instructions on various sites, including this one: http://forums.freebsd.org/showthread.php?t=24268 (as best I can, note I am using Linux) to no avail.
So far I've tried:
  • Not creating the interface -> no interface created, beacon broadcast, association times out
  • Create the interface in managed mode with iw and adding to bridge -> deleted by hostapd, beacon broadcast, association times out
  • Create the interface in AP mode with iw and adding to bridge -> deleted by hostapd, beacon is broadcast, association times out.

Wanted network configuration map (The one that I'm having problems with is marked in bright red):
http://files.qmxtech.com/images/network-map.png

Wireless card capabilities:
Code:
Wiphy phy0
        Band 1:
                Capabilities: 0x272
                        HT20/HT40
                        Static SM Power Save
                        RX Greenfield
                        RX HT20 SGI
                        RX HT40 SGI
                        RX STBC 2-streams
                        Max AMSDU length: 3839 bytes
                        No DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 2 usec (0x04)
                HT RX MCS rate indexes supported: 0-15, 32
                TX unequal modulation not supported
                HT TX Max spatial streams: 1
                HT TX MCS rate indexes supported may differ
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm) (passive scanning, no IBSS)
                        * 2472 MHz [13] (20.0 dBm) (passive scanning, no IBSS)
                        * 2484 MHz [14] (20.0 dBm) (passive scanning, no IBSS)
                Bitrates (non-HT):
                        * 1.0 Mbps
                        * 2.0 Mbps (short preamble supported)
                        * 5.5 Mbps (short preamble supported)
                        * 11.0 Mbps (short preamble supported)
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
        max # scan SSIDs: 4
        max scan IEs length: 2257 bytes
        Coverage class: 0 (up to 0m)
        Supported Ciphers:
                * WEP40 (00-0f-ac:1)
                * WEP104 (00-0f-ac:5)
                * TKIP (00-0f-ac:2)
                * CCMP (00-0f-ac:4)
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * WDS
                 * monitor
        software interface modes (can always be added):
                 * AP/VLAN
                 * monitor
        interface combinations are not supported
        Supported commands:
                 * new_interface
                 * set_interface
                 * new_key
                 * new_beacon
                 * new_station
                 * set_bss
                 * authenticate
                 * associate
                 * deauthenticate
                 * disassociate
                 * join_ibss
                 * set_tx_bitrate_mask
                 * action
                 * frame_wait_cancel
                 * set_wiphy_netns
                 * set_channel
                 * set_wds_peer
                 * Unknown command (84)
                 * Unknown command (87)
                 * Unknown command (85)
                 * connect
                 * disconnect
        Supported TX frame types:
                 * IBSS: 0x0000 0x0010 0x0020 0x0030 0x0040 0x0050 0x0060 0x0070 0x0080 0x0090 0x00a0 0x00b0 0x00c0 0x00d0 0x00e0 0x00f0
                 * managed: 0x0000 0x0010 0x0020 0x0030 0x0040 0x0050 0x0060 0x0070 0x0080 0x0090 0x00a0 0x00b0 0x00c0 0x00d0 0x00e0 0x00f0
                 * AP: 0x0000 0x0010 0x0020 0x0030 0x0040 0x0050 0x0060 0x0070 0x0080 0x0090 0x00a0 0x00b0 0x00c0 0x00d0 0x00e0 0x00f0
                 * AP/VLAN: 0x0000 0x0010 0x0020 0x0030 0x0040 0x0050 0x0060 0x0070 0x0080 0x0090 0x00a0 0x00b0 0x00c0 0x00d0 0x00e0 0x00f0
                 * mesh point: 0x0000 0x0010 0x0020 0x0030 0x0040 0x0050 0x0060 0x0070 0x0080 0x0090 0x00a0 0x00b0 0x00c0 0x00d0 0x00e0 0x00f0
                 * P2P-client: 0x0000 0x0010 0x0020 0x0030 0x0040 0x0050 0x0060 0x0070 0x0080 0x0090 0x00a0 0x00b0 0x00c0 0x00d0 0x00e0 0x00f0
                 * P2P-GO: 0x0000 0x0010 0x0020 0x0030 0x0040 0x0050 0x0060 0x0070 0x0080 0x0090 0x00a0 0x00b0 0x00c0 0x00d0 0x00e0 0x00f0
        Supported RX frame types:
                 * IBSS: 0x00d0
                 * managed: 0x0040 0x00d0
                 * AP: 0x0000 0x0020 0x0040 0x00a0 0x00b0 0x00c0 0x00d0
                 * AP/VLAN: 0x0000 0x0020 0x0040 0x00a0 0x00b0 0x00c0 0x00d0
                 * mesh point: 0x00b0 0x00c0 0x00d0
                 * P2P-client: 0x0040 0x00d0
                 * P2P-GO: 0x0000 0x0020 0x0040 0x00a0 0x00b0 0x00c0 0x00d0
        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Device supports TX status socket option.
        Device supports HT-IBSS.
Current hostapd configuration:
Code:
interface=wlan0
bridge=green-1
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=QMX-Private
hw_mode=g
channel=8
beacon_int=100
dtim_period=2
max_num_sta=2007
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
#auth_algs=3
auth_algs=1
ignore_broadcast_ssid=0
wmm_enabled=1
wmm_ac_bk_cwmin=4
wmm_ac_bk_cwmax=10
wmm_ac_bk_aifs=7
wmm_ac_bk_txop_limit=0
wmm_ac_bk_acm=0
wmm_ac_be_aifs=3
wmm_ac_be_cwmin=4
wmm_ac_be_cwmax=10
wmm_ac_be_txop_limit=0
wmm_ac_be_acm=0
wmm_ac_vi_aifs=2
wmm_ac_vi_cwmin=3
wmm_ac_vi_cwmax=4
wmm_ac_vi_txop_limit=94
wmm_ac_vi_acm=0
wmm_ac_vo_aifs=2
wmm_ac_vo_cwmin=2
wmm_ac_vo_cwmax=3
wmm_ac_vo_txop_limit=47
wmm_ac_vo_acm=0
ieee80211n=1
ht_capab=[HT40-][GF][SHORT-GI-20][SHORT-GI-40][RX-STBC12][SMPS-STATIC]
require_ht=0
ieee8021x=1
eapol_version=2
#eapol_key_index_workaround=0
eap_server=1
eap_user_file=/etc/hostapd/green-1/hostapd.eap_user
ca_cert=/var/ipcop/ca/cacrlbundle.pem
server_cert=/etc/hostapd/green-1/hostapd.pem
private_key=/etc/hostapd/green-1/hostapdpriv.pem
private_key_passwd=########################################################
check_crl=1
dh_file=/etc/hostapd/hostapd.dh.pem
#fragment_size=1400
own_ip_addr=127.0.0.1
#radius_server_clients=/etc/hostapd/green-1/hostapd.radius_clients
#radius_server_auth_port=1812
wpa=2
#wpa_passphrase=########
wpa_key_mgmt=WPA-EAP
wpa_pairwise=CCMP
#ieee80211w=1 ??

bss=wlan0_0
bssid=02:22:6b:a6:bb:4f
ssid=QMX-Public
wpa=0
# wds_sta=1
# wds_bridge=blue-2
# ap_isolate=1
# bridge_packets=1
bridge=blue-1
#hw_mode=g
#wmm_enabled=1
#ieee80211n=1
#ht_capab=[HT40-][GF][SHORT-GI-20][SHORT-GI-40][RX-STBC12][SMPS-STATIC]
#require_ht=0
#interworking=1
#access_network_type=3
#internet=1
#asra=1
#esr=1
#uesa=0
#venue_group=2
#venue_type=0
hostapd output (-ddK) without initially creating interface:
Code:
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
eapol_version=2
nl80211: interface wlan0 in phy phy0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Using driver-based off-channel TX
nl80211: Add own interface ifindex 8
nl80211: Add own interface ifindex 4
nl80211: Set mode ifindex 4 iftype 3 (AP)
nl80211: Create interface iftype 6 (MONITOR)
nl80211: New interface mon.wlan0 created: ifindex=78
nl80211: Add own interface ifindex 78
nl80211: Adding interface wlan0 into bridge green-1
BSS count 2, BSSID mask 02:00:00:00:00:00 (1 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
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
Scan for neighboring BSSes prior to enabling 40 MHz channel
Scan requested (ret=0) - scan timeout 10 seconds
Interface initialization will be completed in a callback
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
nl80211: Ignore interface down event since interface mon.wlan0 is up
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
nl80211: Ignore interface down event since interface wlan0 is up
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
nl80211: Add ifindex 8 for bridge green-1
nl80211: Add own interface ifindex 8
nl80211: Event message available
nl80211: Scan trigger
nl80211: Event message available
nl80211: New scan results available
nl80211: Received scan results (3 BSSes)
40 MHz affected channel range: [2412,2462] MHz
Neighboring BSS: 40:b7:f3:5a:48:a0 freq=2437 pri=6 sec=0
Neighboring BSS: 00:21:29:96:78:31 freq=2437 pri=0 sec=0
Neighboring BSS: 40:b7:f3:4f:27:00 freq=2462 pri=11 sec=0
HT40: control channel: 8  secondary channel: 4
Completing interface initialization
Mode: IEEE 802.11g  Channel: 8  Frequency: 2447 MHz
nl80211: Set freq 2447 (ht_enabled=1 sec_channel_offset=-1)
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
Flushing old station entries
Deauthenticate all stations
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0 with hwaddr 00:22:6b:a6:bb:4f and ssid 'QMX-Private'
TLS: Trusted root certificate(s) loaded
Get randomness: len=32 entropy=0
GMK - hexdump(len=32): ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
Get randomness: len=32 entropy=0
Key Counter - hexdump(len=32): ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
WPA: Delay group state machine start until Beacon frames have been configured
VLAN: vlan_set_name_type(name_type=2)
nl80211: Set beacon (beacon_set=0)
WPA: Start group state machine to set initial keys
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
Get randomness: len=16 entropy=0
GTK - hexdump(len=16): ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
wpa_driver_nl80211_set_key: ifindex=4 alg=3 addr=0xb7794ebe key_idx=1 set_tx=1 seq_len=0 key_len=16
   broadcast key
wpa_driver_nl80211_set_operstate: operstate 0->1 (UP)
netlink: Operstate: linkmode=-1, operstate=6
nl80211: Create interface iftype 3 (AP)
nl80211: New interface wlan0_0 created: ifindex=79
nl80211: Add own interface ifindex 79
Could not set interface wlan0_0 flags: Device or resource busy
nl80211: Remove interface ifindex=79
Failed to add BSS (BSSID=02:22:6b:a6:bb:4f)
RTM_NEWLINK: operstate=1 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
nl80211: Add ifindex 8 for bridge green-1
nl80211: Add own interface ifindex 8
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
nl80211: Add ifindex 8 for bridge green-1
nl80211: Add own interface ifindex 8
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
nl80211: Add ifindex 8 for bridge green-1
nl80211: Add own interface ifindex 8
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
nl80211: Ignore event for foreign ifindex 79
nl80211: Ignore event for foreign ifindex 79
nl80211: Ignore dellink event for foreign ifindex 79
mgmt::deauth cb
VLAN: vlan_newlink(wlan0)
VLAN: vlan_newlink(wlan0)
VLAN: vlan_newlink(wlan0)
VLAN: vlan_newlink(wlan0)
VLAN: vlan_newlink(wlan0_0)
VLAN: vlan_newlink(wlan0_0)
VLAN: vlan_dellink(wlan0_0)
Add randomness: count=1 entropy=0
Add randomness: count=2 entropy=1
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
nl80211: Add ifindex 8 for bridge green-1
nl80211: Add own interface ifindex 8
VLAN: vlan_newlink(wlan0)
Add randomness: count=3 entropy=2
Add randomness: count=4 entropy=3
Add randomness: count=5 entropy=4
Add randomness: count=6 entropy=5
...
<ctrl>+<c>
hostapd output after creating interface in managed mode and adding to bridge... (after turning 4addr on, MAC address is administratively set):
Code:
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
eapol_version=2
nl80211: interface wlan0 in phy phy0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Using driver-based off-channel TX
nl80211: Add own interface ifindex 8
nl80211: Add own interface ifindex 4
nl80211: Set mode ifindex 4 iftype 3 (AP)
nl80211: Create interface iftype 6 (MONITOR)
nl80211: New interface mon.wlan0 created: ifindex=84
nl80211: Add own interface ifindex 84
nl80211: Adding interface wlan0 into bridge green-1
BSS count 2, BSSID mask 02:00:00:00:00:00 (1 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
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
Scan for neighboring BSSes prior to enabling 40 MHz channel
Scan requested (ret=0) - scan timeout 10 seconds
Interface initialization will be completed in a callback
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
nl80211: Ignore interface down event since interface mon.wlan0 is up
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
nl80211: Ignore interface down event since interface wlan0 is up
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
nl80211: Add ifindex 8 for bridge green-1
nl80211: Add own interface ifindex 8
nl80211: Event message available
nl80211: Scan trigger
nl80211: Event message available
nl80211: New scan results available
nl80211: Received scan results (3 BSSes)
40 MHz affected channel range: [2412,2462] MHz
Neighboring BSS: 40:b7:f3:5a:48:a0 freq=2437 pri=6 sec=0
Neighboring BSS: 00:21:29:96:78:31 freq=2437 pri=0 sec=0
Neighboring BSS: 40:b7:f3:4f:27:00 freq=2462 pri=11 sec=0
HT40: control channel: 8  secondary channel: 4
Completing interface initialization
Mode: IEEE 802.11g  Channel: 8  Frequency: 2447 MHz
nl80211: Set freq 2447 (ht_enabled=1 sec_channel_offset=-1)
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
Flushing old station entries
Deauthenticate all stations
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0 with hwaddr 00:22:6b:a6:bb:4f and ssid 'QMX-Private'
TLS: Trusted root certificate(s) loaded
Get randomness: len=32 entropy=0
GMK - hexdump(len=32): ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
Get randomness: len=32 entropy=0
Key Counter - hexdump(len=32): ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
WPA: Delay group state machine start until Beacon frames have been configured
VLAN: vlan_set_name_type(name_type=2)
nl80211: Set beacon (beacon_set=0)
WPA: Start group state machine to set initial keys
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
Get randomness: len=16 entropy=0
GTK - hexdump(len=16): ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
wpa_driver_nl80211_set_key: ifindex=4 alg=3 addr=0xb7781ebe key_idx=1 set_tx=1 seq_len=0 key_len=16
   broadcast key
wpa_driver_nl80211_set_operstate: operstate 0->1 (UP)
netlink: Operstate: linkmode=-1, operstate=6
nl80211: Create interface iftype 3 (AP)
Failed to create interface wlan0_0: -23 (Too many open files in system)
Try to remove and re-create wlan0_0
nl80211: Remove interface ifindex=83
nl80211: Create interface iftype 3 (AP)
nl80211: New interface wlan0_0 created: ifindex=85
nl80211: Add own interface ifindex 85
Could not set interface wlan0_0 flags: Device or resource busy
nl80211: Remove interface ifindex=85
Failed to add BSS (BSSID=02:22:6b:a6:bb:4f)
RTM_NEWLINK: operstate=1 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
nl80211: Add ifindex 8 for bridge green-1
nl80211: Add own interface ifindex 8
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
nl80211: Add ifindex 8 for bridge green-1
nl80211: Add own interface ifindex 8
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
nl80211: Add ifindex 8 for bridge green-1
nl80211: Add own interface ifindex 8
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
nl80211: Ignore event for foreign ifindex 83
nl80211: Ignore dellink event for foreign ifindex 83
nl80211: Ignore dellink event for foreign ifindex 83
nl80211: Ignore event for foreign ifindex 85
nl80211: Ignore event for foreign ifindex 85
mgmt::deauth cb
VLAN: vlan_newlink(wlan0)
nl80211: Ignore dellink event for foreign ifindex 85
VLAN: vlan_newlink(wlan0)
VLAN: vlan_newlink(wlan0)
VLAN: vlan_newlink(wlan0)
VLAN: vlan_newlink(wlan0_0)
VLAN: vlan_dellink(wlan0_0)
VLAN: vlan_dellink(wlan0_0)
VLAN: vlan_newlink(wlan0_0)
VLAN: vlan_newlink(wlan0_0)
VLAN: vlan_dellink(wlan0_0)
Add randomness: count=1 entropy=0
Add randomness: count=2 entropy=1
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
nl80211: Add ifindex 8 for bridge green-1
nl80211: Add own interface ifindex 8
VLAN: vlan_newlink(wlan0)
Add randomness: count=3 entropy=2
Add randomness: count=4 entropy=3
...
<ctrl>+<c>
To shorten things up a bit rather than keep posting additional logs, hostapd always seems to run vlan_dellink(IFACE) on the second interface after it created it.

Maybe this is a bug in hostapd? Or is it something wrong with my configuration?

Any help would be greatly appreciated.

Last edited by leos220; 09-11-2012 at 02:33 AM. Reason: Private key data removed (only hexdump anyway, but best err on the side of caution)
 
Old 09-11-2012, 02:46 AM   #2
leos220
LQ Newbie
 
Registered: Sep 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
I have traced this down to an issue with rt2800pci and nl80211 (partly by running a bare-bones config with a second BSS). It seems that it will not bring the virtual interface up and errors out on creating the VAP with the following:
Code:
Could not set interface wlan0_0 flags (UP): Device or resource busy
nl80211: Remove interface ifindex=136
Failed to add BSS (BSSID=02:22:6b:a6:bb:4f)
which suggests there is some type of lock on the already running interface keeping the virtual interface from coming up.

Note: Kernel 3.5.3, libnl 3.2.11

If anybody knows of a solution to this problem, I would be grateful for your assistance. In the meantime, I'll keep on digging and post back if I find something. Any additional
information upon request.

Last edited by leos220; 09-11-2012 at 02:54 AM.
 
Old 09-14-2012, 11:32 AM   #3
leos220
LQ Newbie
 
Registered: Sep 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
This problem was resolved using the kernel patch found at https://patchwork.kernel.org/patch/1277291/ .

However, now I am getting another issue, I am unable to connect to the primary AP (constant deauth and reauth), however I can connect to the (secondary) BSS just fine.

Something tells me this is another kernel issue that will probably be fixed in 3.6. however if anybody knows if this could be in my configuration or in hostapd itself, please let me know, It'd be nice to get this working sooner rather than later.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian testing, RT5390 / RT2800PCI t0n1 Linux - Wireless Networking 12 04-28-2012 06:48 PM
hostapd access point is unable to complete the connection ravi.xolve Linux - Networking 7 04-10-2012 06:01 AM
Unable to compile hostapd tkdlady Linux - Wireless Networking 4 04-10-2011 07:59 PM
LXer: Kernel Log: New stable kernels, 2.6.33 with DRBD and RT2800PCI LXer Syndicated Linux News 0 12-12-2009 05:50 AM
i am unable to load mappingtable by using dmsetup and unable to create vitualdevice varunsharma35 Linux - Software 0 12-20-2008 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 02:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration