Linux wireless drivers development
 help / color / mirror / Atom feed
From: Krzysztof Halasa <khc@pm.waw.pl>
To: "Bob Copeland" <bcopeland@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: ath5k + AP mode?
Date: Tue, 16 Dec 2008 21:27:40 +0100	[thread overview]
Message-ID: <m3skon27cz.fsf@maximus.localdomain> (raw)
In-Reply-To: <b6c5339f0812160933q1670f646iab25dff161450ef9@mail.gmail.com> (Bob Copeland's message of "Tue\, 16 Dec 2008 12\:33\:27 -0500")

"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?
-- 
Krzysztof Halasa

  parent reply	other threads:[~2008-12-16 20:30 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 [this message]
2008-12-16 20:44     ` Johannes Berg

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=m3skon27cz.fsf@maximus.localdomain \
    --to=khc@pm.waw.pl \
    --cc=bcopeland@gmail.com \
    --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