Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Philippe Agostini <philippe.agostini@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: SIOCSIFFLAGS: operation not supported error message when tryinging to bring up an interface in adhoc mode
Date: Thu, 05 Jul 2012 16:27:32 +0200	[thread overview]
Message-ID: <1341498452.4455.44.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <CADnjpYvb15WvfZVnSpNvUiUAEdUgntOS2yoCyfxDZqHu+JBA5Q@mail.gmail.com> (sfid-20120705_162557_048014_F2AC6601)

On Thu, 2012-07-05 at 16:25 +0200, Philippe Agostini wrote:
> Hello,
> 
> I am currently developing a wifi driver and I am having trouble with
> the adhoc mode. I am developing on Ubuntu 10.04 with kernel 2.6.32. To
> verify that my initialization is correct, I try to bring up and
> configure virtual interfaces. It's working in managed mode, but when I
> try an "ifconfig wlan0 up" in adhoc mode I get the following error
> message: "SIOCSIFFLAGS: operation not supported". At first I thought
> that it was because of the regulatory domain, but I defined only one
> supported channel (channel 6, F=2437 MHz) and it seems to me that iw
> reg get tells me that on this frequency I am allowed to set up
> wireless device in adhoc mode (country 00: (2402 - 2472 @ 40), (3, 20)
> and no flags following).
> 
> Are there mandatory flags to set up (besides wiphy->interface_modes =
> BIT(NL80211_IFTYPE_ADHOC)) that I missed, or callbacks to define in
> order to have a working adhoc interface ?

This would be a lot easier if you'd post your code :-)

johannes


  reply	other threads:[~2012-07-05 14:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-05 14:25 SIOCSIFFLAGS: operation not supported error message when tryinging to bring up an interface in adhoc mode Philippe Agostini
2012-07-05 14:27 ` Johannes Berg [this message]
2012-07-05 14:44   ` Philippe Agostini
2012-07-06  6:44     ` Johannes Berg
2012-07-06  7:44       ` Philippe Agostini

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=1341498452.4455.44.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=philippe.agostini@gmail.com \
    /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