From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:47117 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751155Ab2K2JGZ (ORCPT ); Thu, 29 Nov 2012 04:06:25 -0500 Message-ID: <1354180010.9557.2.camel@jlt4.sipsolutions.net> (sfid-20121129_100629_702452_EFE59F81) Subject: Re: [PATCH] cfg80211: Remove unused VHT chan code From: Johannes Berg To: Mahesh Palivela Cc: "linux-wireless@vger.kernel.org" Date: Thu, 29 Nov 2012 10:06:50 +0100 In-Reply-To: <1354179955.9557.1.camel@jlt4.sipsolutions.net> (sfid-20121129_100538_966311_BCCEF54F) References: <50B71FA3.7050304@posedge.com> <1354179167.9557.0.camel@jlt4.sipsolutions.net> <50B723CF.20903@posedge.com> <1354179955.9557.1.camel@jlt4.sipsolutions.net> (sfid-20121129_100538_966311_BCCEF54F) Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, 2012-11-29 at 10:05 +0100, Johannes Berg wrote: > On Thu, 2012-11-29 at 14:28 +0530, Mahesh Palivela wrote: > > On 11/29/2012 02:22 PM, Johannes Berg wrote: > > > On Thu, 2012-11-29 at 14:11 +0530, Mahesh Palivela wrote: > > >> From: Mahesh Palivela > > >> > > >> Cleanup of unused VHT channel config related code. > > > > > > Huh, good catch, thanks. Applied. > > > > Thanks. Even below also can be removed as cfg80211_chandef_usable() > > checks this at the beginning. > > > > if (!cfg80211_chandef_valid(chandef)) > > return -EINVAL; > > Hmm good point I'll roll that in. No actually it can't, cfg80211_chandef_usable() triggers a warning which we can't do if userspace just sends invalid information; however it's doing that for all other in-kernel users intentionally. johannes