HOSTAPD starts, but AP not visible

Post Reply
Message
Author
morglum
Posts: 4
Joined: Wed 12 Feb 2014, 17:11

HOSTAPD starts, but AP not visible

#1 Post by morglum »

I everyone. I have an old laptop with two wifi cards: an internal one (wlan1) and a USB one with a large antenna (wlan0).

I use the wlan0 to connect to a nearby hotspot. I would like to use wlan1 as an AP to allow my devices with a shorter range (phone, tablets) to connect to the hotspot. I am trying to follow this thread, I installed hostapd, it starts, but the AP is invisible to my devices. I am stuck.

I am a linux newbie. I have done some messing around on an unslung NSLU2 (asterisk; one wire; some scripting), but please consider myself as knowing nothing, which is true.

The computer is a HP pavilion zv5000 laptop.
Athlon XP-M with 512 MB ram running Slacko 5.6 non PAE on a live CD. I attached a USB wifi device with a long antenna.
This wifi device (wlan0) is used to connect to a nearby hotspot.

Here is some output :

lspci -k | grep -A 3 -i "network" output (as per http://nims11.wordpress.com/2012/04/27/ ... ess-point/)

Code: Select all

02:02.0 Network controller: Broadcom Corporation BCM4301 802.11b Wireless LAN Controller (rev 02)
	Subsystem: Hewlett-Packard Company Device 12f3
	Kernel driver in use: b43-pci-bridge


lsusb output:

Code: Select all

Bus 001 Device 002: ID 0cf3:1006 Atheros Communications, Inc. 
iwconfig output :

Code: Select all

wlan0     IEEE 802.11bgn  ESSID:"SFR WiFi FON"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: B2:17:33:BD:92:DD   
          Bit Rate=11 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=23/70  Signal level=-87 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:2314   Missed beacon:0

wlan1     IEEE 802.11b  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on

iw list output seems to say that both can be used in AP mode(after installing the dotpets in this post http://www.murga-linux.com/puppy/viewto ... 066#292066)

Code: Select all

Wiphy phy1
	Band 1:
		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:
			* 1.0 Mbps
			* 2.0 Mbps (short preamble supported)
			* 5.5 Mbps (short preamble supported)
			* 11.0 Mbps (short preamble supported)
	Supported interface modes:
		 * IBSS
		 * Station
		 * AP
		 * AP(VLAN)
		 * WDS
		 * Monitor
Wiphy phy0
	Band 1:
		HT capabilities: 0x116e
			 * 20/40 MHz operation
			 * SM PS disabled
			 * 20 MHz short GI
			 * 40 MHz short GI
			 * RX STBC 1 streams
			 * max A-MSDU len 3839
			 * DSSS/CCK 40 MHz
		HT A-MPDU factor: 0x0003 (65535 bytes)
		HT A-MPDU density: 0x0006 (8 usec)
		HT MCS set: ff 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00
		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] (disabled)
			* 2472 MHz [13] (disabled)
			* 2484 MHz [14] (disabled)
		Bitrates:
			* 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
	Supported interface modes:
		 * IBSS
		 * Station
		 * AP
		 * AP(VLAN)
		 * Monitor
		 * Unknown mode (8)
		 * Unknown mode (9)


I have installed hostapd-2.0.pet and bridge-utils-1.5.pet
from this thread : http://www.murga-linux.com/puppy/viewtopic.php?t=84269

here is my hostapdminimal.conf as per http://wireless.kernel.org/en/users/Doc ... on/hostapd
##

Code: Select all

interface=wlan1
driver=nl80211
ssid=test
channel=1
ignore_broadcast_ssid=0
##
I try running
sudo hostapd hostapdminimal.conf
The output looks fine, but the AP `test` is nowhere to be seen for my other devices.

Code: Select all

Configuration file: hostapdmin.conf
Using interface wlan1 with hwaddr 00:90:4b:9f:88:73 and ssid "test"
Here is the output with the -dd switch. Do you see anything useful?

Code: Select all

random: Trying to read entropy from /dev/random
Configuration file: hostapdmin.conf
nl80211: interface wlan1 in phy phy1
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
nl80211: Using driver-based off-channel TX
nl80211: Add own interface ifindex 4
nl80211: Set mode ifindex 4 iftype 3 (AP)
nl80211: Setup AP - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x80cf770
nl80211: Register frame type=0xb0 nl_handle=0x80cf770
nl80211: Register frame match - hexdump(len=0): [NULL]
nl80211: Register frame type=0x0 nl_handle=0x80cf770
nl80211: Register frame match - hexdump(len=0): [NULL]
nl80211: Register frame type=0x20 nl_handle=0x80cf770
nl80211: Register frame match - hexdump(len=0): [NULL]
nl80211: Register frame type=0xa0 nl_handle=0x80cf770
nl80211: Register frame match - hexdump(len=0): [NULL]
nl80211: Register frame type=0xc0 nl_handle=0x80cf770
nl80211: Register frame match - hexdump(len=0): [NULL]
nl80211: Register frame type=0xd0 nl_handle=0x80cf770
nl80211: Register frame match - hexdump(len=0): [NULL]
nl80211: Register frame type=0x40 nl_handle=0x80cf770
nl80211: Register frame match - hexdump(len=0): [NULL]
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 @ 40 MHz
nl80211: 2474-2494 @ 20 MHz
nl80211: 5170-5250 @ 40 MHz
nl80211: 5735-5835 @ 40 MHz
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
Completing interface initialization
Mode: IEEE 802.11b  Channel: 1  Frequency: 2412 MHz
nl80211: Set freq 2412 (ht_enabled=0 sec_channel_offset=0)
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x0
RATE[3] rate=110 flags=0x0
wlan1: Flushing old station entries
wlan1: Deauthenticate all stations
nl80211: CMD_FRAME freq=2412 wait=0 no_cck=0 no_ack=0 offchanok=0
nl80211: Frame TX command accepted; cookie 0xdf65da40
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 wlan1 with hwaddr 00:90:4b:9f:88:73 and ssid "test"
nl80211: Set beacon (beacon_set=0)
wpa_driver_nl80211_set_operstate: operstate 0->1 (UP)
netlink: Operstate: linkmode=-1, operstate=6
Failed to set TX queue parameters for queue 1.
Failed to set TX queue parameters for queue 2.
Failed to set TX queue parameters for queue 3.
wlan1: Setup of interface done.
ctrl_iface not configured!
random: Got 16/20 bytes from /dev/random
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
nl80211: if_removed already cleared - ignore event
nl80211: Event message available
nl80211: MLME event 60
nl80211: MLME event frame - hexdump(len=26): c0 00 00 00 ff ff ff ff ff ff 00 90 4b 9f 88 73 00 90 4b 9f 88 73 70 00 02 00
nl80211: Frame TX status event
wlan1: Event TX_STATUS (18) received
mgmt::deauth cb
random: Got 4/4 bytes from /dev/random
Signal 2 received - terminating
wlan1: Flushing old station entries
wlan1: Deauthenticate all stations
nl80211: CMD_FRAME freq=2412 wait=0 no_cck=0 no_ack=0 offchanok=0
nl80211: Frame TX command accepted; cookie 0xdf65d980
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
netlink: Operstate: linkmode=0, operstate=6
nl80211: Set mode ifindex 4 iftype 2 (STATION)
nl80211: Unsubscribe mgmt frames handle 0x80cf770 (AP teardown)


Thanks for reading.

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Recommend Post be moved to User's Sub-form

#2 Post by mikeslr »

Hi morglum,

I suggest you email flash. Click his name under moderators at top of web-page. Ask if he could transfer your post to the User's sub-forum; (a) because its not a problem "beginners" are likely to have; but mostly (b) if posted to the User's sub-forum it's more likely to attract the attention of someone having sufficient experience to answer it.
I'm reminded of the man who posted a "Lost Cat" sign at the back of his property because that was where the cat was last seen.
It's always best to post questions either (a) to a specific Puppy thread, if its has to do with a specific Puppy or application and the last post of that thread is reasonably current; or if not, (b) to the User's sub-forum, especially if the problem requires some expertise to answer.
The Beginner's sub-forum is best used for "Beginner's" questions, such as which Puppy?; How do I install/get on line/use an SFS?: things everyone should know to get started.

mikesLr

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#3 Post by tempestuous »

Better still, post your query in the actual hostapd forum thread, itself!
This query is directly related to that topic.

morglum
Posts: 4
Joined: Wed 12 Feb 2014, 17:11

#4 Post by morglum »

hey all.
I 'll email flash. Im not sure about moving to the hostapd thread I linked above because its also a year old.

I ll let him decide where it belongs.
cheers!

Post Reply