Search Linux Wireless

Re: ath5k master (AP) mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 13 Nov 2008 00:46:32 +0100
RUMI Szabolcs <rumi_ml@xxxxxxx> wrote:

> On Wed, 12 Nov 2008 17:46:50 -0500
> Pavel Roskin <proski@xxxxxxx> wrote:
> 
> > On Wed, 2008-11-12 at 22:48 +0100, RUMI Szabolcs wrote:
> > > Hello!
> > > 
> > > I've been trying to set an Atheros NIC to AP mode using the ath5k
> > > driver but it fails:
> > > 
> > > # iwconfig wlan0 mode master
> > > Error for wireless request "Set Mode" (8B06) :
> > >     SET failed on device wlan0 ; Invalid argument.
> > 
> > You need to use hostapd for master mode.
> 
> Well, I have installed hostapd-0.6.5 with the nl80211 driver and it says:
> 
> # hostapd -dd /etc/hostapd/hostapd.conf
> Configuration file: /etc/hostapd/hostapd.conf
> ctrl_interface_group=0
> Failed to set interface wlan0 to master mode.
> nl80211 driver initialization failed.
> wlan0: Unable to setup interface.
> Flushing old station entries
> Deauthenticate all stations
> rmdir[ctrl_interface]: No such file or directory
> ELOOP: remaining socket: sock=8 eloop_data=0x9f4ea98 user_data=(nil) handler=0x8082920

Some news about what I have tried since yesterday:

I have compiled a kernel from wireless-testing git of today (2.6.28-rc4-wl)
then recompiled and tested hostapd-0.6.5 against that, but it exhibited the
same behavior as above. Then I've compiled libnl git of today which did
compile but any version of hostapd failed to compile against it so I gave
up on that. Then I have compiled the hostapd git of today against libnl-1.1
and the wireless-testing kernel which did compile but runtime it exhibited
the same error as above. So basically whatever I do it fails to set master
mode on ath5k...

I have also tried to patch 2.6.27 with a patch that the OpenWRT people
seemed to be using and has this in net/mac80211/cfg.c:

@@ -33,6 +33,10 @@ nl80211_type_to_mac80211_type(enum nl802
       case NL80211_IFTYPE_MESH_POINT:
              return IEEE80211_IF_TYPE_MESH_POINT;
#endif
+      case NL80211_IFTYPE_AP:
+              return IEEE80211_IF_TYPE_AP;
+      case NL80211_IFTYPE_AP_VLAN:
+              return IEEE80211_IF_TYPE_VLAN;

But this also ended up with the same error like anything else.

Thanks,

Sab
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux