Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Krzysztof Halasa <khc@pm.waw.pl>
Cc: Bob Copeland <bcopeland@gmail.com>, linux-wireless@vger.kernel.org
Subject: Re: ath5k + AP mode?
Date: Tue, 16 Dec 2008 21:44:17 +0100	[thread overview]
Message-ID: <1229460257.4471.52.camel@johannes.berg> (raw)
In-Reply-To: <m3skon27cz.fsf@maximus.localdomain> (sfid-20081216_213014_549365_D8A76083)

[-- Attachment #1: Type: text/plain, Size: 1297 bytes --]

On Tue, 2008-12-16 at 21:27 +0100, Krzysztof Halasa wrote:
> "Bob Copeland" <bcopeland@gmail.com> 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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

      reply	other threads:[~2008-12-16 20:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-15 20:41 ath5k + AP mode? Krzysztof Halasa
2008-12-16 17:33 ` Bob Copeland
2008-12-16 19:47   ` Krzysztof Halasa
2008-12-16 20:27   ` Krzysztof Halasa
2008-12-16 20:44     ` Johannes Berg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1229460257.4471.52.camel@johannes.berg \
    --to=johannes@sipsolutions.net \
    --cc=bcopeland@gmail.com \
    --cc=khc@pm.waw.pl \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox