Received: by 10.213.65.68 with SMTP id h4csp708124imn; Fri, 6 Apr 2018 07:37:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+tEPyLCAcz5FXNd9YN0WAjc8g45J4YVqJgmHqbM84xht1VPyA+i32Gdr4dyfOkE4p09KKG X-Received: by 2002:a17:902:8f8f:: with SMTP id z15-v6mr27075240plo.368.1523025437823; Fri, 06 Apr 2018 07:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523025437; cv=none; d=google.com; s=arc-20160816; b=XCb6Lg1D0v7y+dZa3KFbbsL+Hq0SWznacj4NyvJ0bB6FO8mRCLt16bStPpzW2YmiXp ASfSeDqqufhP1lfxJDFyTFARQK1/pVcTRz2eiCsTe2w7hNmCP9VZObFbHRMb6f2xcHWn 0rJnJkkEYqYBlFtXnBuVWeYhug5JMLCF8EA+IIxJmT+lAKUagW6u2HOFNeV/wiEuCRW1 SEfrtkieYiEhiW8/ombruzePsG50nRzQV0LxaynUUxfywyR/F0upW60w0/MIFFtDuwUI 18yGxHr65siBDDcW027RGgii3dM7qj28R3Ijpj5J+1h20cyLDuK+1jKdb+Zv+bYlWex/ Fleg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=5/f31O18qQrQCdxB1kTyk89LkwcOAu3UiHWSZ80HqPs=; b=psUU/vMZQq3sr6sa5YLyPgp4ar4BeP76OjpXRmk2B+mVTEO//cgVyA/keQy8V5xRyC kCWkFguztcqDvKGkebZssmsopJPp3sk5NSSP7M1HUljZyH+AHfG4YN7/RBNdrYMGodt5 evbefznWh97QTgObUiljlwk+s/GkEsh8yzMx4eZ27dj7kglv0uZ/3QoWNs/SQee2w7sQ l0hKel2mKWHlZS8VlkBQlaxhg+YvvhU4DJzoBNLbDEB7zhWuLm5qq4PAXzVhFPC0jMlY SISbujqFy3dgoQrAj8fRVNqkH1MTxJvxaLTtRQ9hGF9DnX3UXNXgcrZ03LobjXFFF7/1 tVGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d13si7393915pgn.334.2018.04.06.07.37.03; Fri, 06 Apr 2018 07:37:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755785AbeDFNfj (ORCPT + 99 others); Fri, 6 Apr 2018 09:35:39 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58888 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756045AbeDFNfh (ORCPT ); Fri, 6 Apr 2018 09:35:37 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 55570DC0; Fri, 6 Apr 2018 13:35:36 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthias Kaehlcke , Johannes Berg , Nathan Chancellor Subject: [PATCH 4.9 030/102] mac80211: ibss: Fix channel type enum in ieee80211_sta_join_ibss() Date: Fri, 6 Apr 2018 15:23:11 +0200 Message-Id: <20180406084335.864553789@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084331.507038179@linuxfoundation.org> References: <20180406084331.507038179@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Matthias Kaehlcke commit a4ac6f2e53e568a77a2eb3710efd99ca08634c0a upstream. cfg80211_chandef_create() expects an 'enum nl80211_channel_type' as channel type however in ieee80211_sta_join_ibss() NL80211_CHAN_WIDTH_20_NOHT is passed in two occasions, which is of the enum type 'nl80211_chan_width'. Change the value to NL80211_CHAN_NO_HT (20 MHz, non-HT channel) of the channel type enum. Signed-off-by: Matthias Kaehlcke Signed-off-by: Johannes Berg Cc: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- net/mac80211/ibss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c @@ -427,7 +427,7 @@ static void ieee80211_sta_join_ibss(stru case NL80211_CHAN_WIDTH_5: case NL80211_CHAN_WIDTH_10: cfg80211_chandef_create(&chandef, cbss->channel, - NL80211_CHAN_WIDTH_20_NOHT); + NL80211_CHAN_NO_HT); chandef.width = sdata->u.ibss.chandef.width; break; case NL80211_CHAN_WIDTH_80: @@ -439,7 +439,7 @@ static void ieee80211_sta_join_ibss(stru default: /* fall back to 20 MHz for unsupported modes */ cfg80211_chandef_create(&chandef, cbss->channel, - NL80211_CHAN_WIDTH_20_NOHT); + NL80211_CHAN_NO_HT); break; }