Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:46395 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932983Ab2GLKAN (ORCPT ); Thu, 12 Jul 2012 06:00:13 -0400 Message-ID: <1342087211.4531.12.camel@jlt3.sipsolutions.net> (sfid-20120712_120018_674592_22967432) Subject: Re: pull-request: mac80211-next 2012-07-10 From: Johannes Berg To: John Linville Cc: linux-wireless Date: Thu, 12 Jul 2012 12:00:11 +0200 In-Reply-To: <1342087000.4531.11.camel@jlt3.sipsolutions.net> (sfid-20120712_115658_371123_64E83BB6) References: <1341946090.4475.31.camel@jlt3.sipsolutions.net> (sfid-20120710_204821_128762_BC016001) <1342085261.4531.9.camel@jlt3.sipsolutions.net> (sfid-20120712_112748_417680_83E2626B) <1342087000.4531.11.camel@jlt3.sipsolutions.net> (sfid-20120712_115658_371123_64E83BB6) Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, 2012-07-12 at 11:56 +0200, Johannes Berg wrote: > On Thu, 2012-07-12 at 11:27 +0200, Johannes Berg wrote: > > On Tue, 2012-07-10 at 20:48 +0200, Johannes Berg wrote: > > > John, > > > > > > Please pull some more patches. I've included the first round of API > > > additions/updates for the P2P Device abstraction, I don't know if we'll > > > get the actual code done in time for 3.6 but I didn't want to hang on to > > > these APIs for too long to avoid conflicts. > > > > Ugh, I found a bug with this, please drop, I'll respin. Sorry! > > Ok the bug is this -- if we remove a wdev (that doesn't have a netdev), > this change is obviously needed: > > > diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c > index 27cd18e..70452aa 100644 > --- a/net/wireless/nl80211.c > +++ b/net/wireless/nl80211.c > @@ -6768,6 +6768,7 @@ static int nl80211_pre_doit(struct genl_ops *ops, struct sk_buff *skb, > info->user_ptr[1] = dev; > } else { > info->user_ptr[1] = wdev; > + info->user_ptr[2] = wdev->netdev; Ok, it's not that simple, ouch! The user_ptr[] array only has two entries! johannes