Search Linux Wireless

Re: ath5k + AP mode?

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

 



On Tue, 2008-12-16 at 21:27 +0100, Krzysztof Halasa wrote:
> "Bob Copeland" <bcopeland@xxxxxxxxx> writes:
> 
> > It's probably worth taking a look at hostapd to see what exactly is failing.
> > We should be able to create an IFTYPE_AP interface with your above patch
> > applied.  No telling whether the rest works.
> 
> So the problem is:
> - hostapd requests master mode on "wlan0" using netlink,
> - it gets to nl80211_set_interface(), drv->ops->change_virtual_intf(),
>   ieee80211_change_iface() and then to ieee80211_if_change_type().
> 
> Then it fails with -EOPNOTSUPP.
> 
> int ieee80211_if_change_type(struct ieee80211_sub_if_data *sdata,
> 			     enum nl80211_iftype type)
> {
> 	ASSERT_RTNL();
> 
> 	if (type == sdata->vif.type)
> 		return 0;
> 
> 	/* Setting ad-hoc mode on non-IBSS channel is not supported. */
> 	if (sdata->local->oper_channel->flags & IEEE80211_CHAN_NO_IBSS)
> 		return -EOPNOTSUPP;
>                 ^^^^^^^^^^^^^^^^^^^
> 
> The flags are set to 6 = IEEE80211_CHAN_NO_IBSS |
>                          IEEE80211_CHAN_PASSIVE_SCAN
> 
> Unfortunately I don't know what does the above mean, except that
> I don't want ad-hoc mode, I want AP instead.
> 
> Ideas?

It's a bug. I accidentally introduced it in 00176c7f.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[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