Feedback

type to search

TP-LINK TL-WN951N PCI wireless card in master mode?

Asked by

Hi,

I am using Debian Squeeze and I have a tp-link TL-WN951N PCI wireless card. I am trying to configure it in master mode so that I can use it as an access point with hostapd. First, some details about this card:

Relevant lspci data:

03:06.0 Network controller: Atheros Communications Inc. AR5008 Wireless Network Adapter (rev 01)
03:06.0 0280: 168c:0023 (rev 01)

This card is using the ath9k module.

Supported interface modes reported by “iw list”:

  • IBSS
  • managed
  • AP
  • AP/VLAN
  • monitor
  • mesh point


Seeing that it should operate in AP mode I try:

iw dev wlan0 set type ap

As a result I always get:

See http://wireless.kernel.org/RTFM-AP.
 
When trying to run hostapd, no matter how my hostapd.conf looks like, I always get the following errors:

# hostapd /etc/hostapd/hostapd.conf -dd

ioctl[SIOCGIFFLAGS]: No such device
Could not read interface flags (wlan0 )
nl80211 driver initialization failed.
wlan0 : Unable to setup interface.

Before running out of ideas, I tried to compile and use a newer version of the ath9k module (compat-wireless-2.6.37-2-sn.tar.bz2) with the lastest stable version of hostapd but still didn’t work.

Any idea, tip, hint, etc will be greatly appreciated!!.

Thanks in advance!.

or Cancel

1 answer

1

benh

Note that the error message refers to “wlan0 ” with a space on the end. I think you have an extra space in the configuration file hostapd.conf, although I would expect spaces to be ignored!

NN comments
tuxedoar
-

It seems that you were absolutely right about the space at the end of the interface line and hostpad not ignoring it. Many months later after reading your answer, I got back to test hostapd making sure that no space is present at wlan0 line and it worked flawlessly!!. So thanks a lot!. :)

or Cancel

Your answer

You need to join Debian to complete this action, click here to do so.