All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "John W. Linville" <linville@tuxdriver.com>,
	<linux-wireless@vger.kernel.org>, <stable@vger.kernel.org>,
	<liang.li@windriver.com>
Subject: Re: [RFC/PATCH 0/1] Fix inability to configure adhoc in 3.4.x
Date: Wed, 1 Aug 2012 13:38:47 -0400	[thread overview]
Message-ID: <20120801173847.GA13879@windriver.com> (raw)
In-Reply-To: <1343838717.4638.9.camel@jlt3.sipsolutions.net>

[Re: [RFC/PATCH 0/1] Fix inability to configure adhoc in 3.4.x] On 01/08/2012 (Wed 18:31) Johannes Berg wrote:

> On Wed, 2012-08-01 at 12:14 -0400, Paul Gortmaker wrote:
> 
> [...]
> 
> > However, things still weren't right unless he also cherry picked the
> > 8e8b41f9d8c8e6 ("cfg80211: enforce lack of interface combinations")
> > to get the later mentioned "total == 1" check within, so that we
> > avoid the EBUSY above.  But this commit causes other regressions
> > (as described in the commit log of the attached patch) so we didn't
> > think it best to go that route for 3.4.x.
> > 
> > So, the options we considered (to fix 3.4.x stable) were:
> > 
> > 1) cherry pick 8e8b41f9d, and all the driver specific changes it requires
> > 
> > 2) make a sub-commit for stable that just takes the total==1 from #1.
> > 
> > 3) patch iwlwifi/iwl-mac80211.c and add ".types = BIT(NL80211_IFTYPE_ADHOC)"
> > 
> > 4) treat ADHOC as a universal feature that everyone has.
> > 
> > The following patch does #4, and in theory it could be used in mainline
> > and then cherry picked back to stable.  But we weren't 100% sure if that
> > was the best solution, since neither of us are really wireless people,
> > hence all the detail here.
> 
> Thanks for the detailed analysis. Given 8e8b41f9d, I don't think any
> mainline changes are actually needed?

Perhaps not.  I know Liang was looking at the ath5k and ath9k changes:

  9b4760e  ath5k: add possible wiphy interface combinations
  20c8e8d  ath9k: add possible wiphy interface combinations

and thinking that the above commits plus the "total==1" change
wouldn't fix any ATH multifunction cards (if they exist) in the
ad-hoc use case - but we didn't have such hardware to test with.

And from what you say below, maybe they should not be, if there
are cards which don't support it.

> 
> I don't think #4 is right, not all drivers do in fact support IBSS.
> Making them advertise it will just cause issues.
> 
> I think #2 would be the best option.

OK, no problem.  We can do that and resend.  I'll give Liang a chance
to catch up on the reading (different time zone) and confirm I've
captured all his descriptions properly before resending.

Thanks,
Paul.

> 
> johannes
> 

  reply	other threads:[~2012-08-01 17:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-01 16:14 [RFC/PATCH 0/1] Fix inability to configure adhoc in 3.4.x Paul Gortmaker
2012-08-01 16:14 ` [PATCH] cfg80211: fix combination check for ADHOC Paul Gortmaker
2012-08-01 16:31 ` [RFC/PATCH 0/1] Fix inability to configure adhoc in 3.4.x Johannes Berg
2012-08-01 17:38   ` Paul Gortmaker [this message]
2012-08-01 17:42     ` Johannes Berg
2012-08-01 17:58       ` Paul Gortmaker
2012-08-02 22:55         ` [PATCH stable] cfg80211: fix interface combinations check for ADHOC(IBSS) Paul Gortmaker
2012-08-06  1:00           ` Ben Hutchings
2012-08-13 18:59           ` Patch "cfg80211: fix interface combinations check for ADHOC(IBSS)" has been added to the 3.4-stable tree gregkh
2012-08-13 19:00           ` Patch "cfg80211: fix interface combinations check for ADHOC(IBSS)" has been added to the 3.0-stable tree gregkh
2012-08-02  2:53 ` [RFC/PATCH 0/1] Fix inability to configure adhoc in 3.4.x Ben Hutchings

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=20120801173847.GA13879@windriver.com \
    --to=paul.gortmaker@windriver.com \
    --cc=johannes@sipsolutions.net \
    --cc=liang.li@windriver.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=stable@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.