From patchwork Wed Aug 14 06:01:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Wunderlich X-Patchwork-Id: 2844188 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D4DB29F271 for ; Wed, 14 Aug 2013 06:01:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 062AA20347 for ; Wed, 14 Aug 2013 06:01:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E4A5120345 for ; Wed, 14 Aug 2013 06:01:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752306Ab3HNGBy (ORCPT ); Wed, 14 Aug 2013 02:01:54 -0400 Received: from cora.hrz.tu-chemnitz.de ([134.109.228.40]:38294 "EHLO cora.hrz.tu-chemnitz.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751895Ab3HNGBw (ORCPT ); Wed, 14 Aug 2013 02:01:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=F5EbsSh8StE+uHPA8iH1i8BWb8GT1LIpHjmUvrqWB9A=; b=UCai1vYkv7clH6KZ0N9KG6qLeI4Z3VCdGWoDdhUBgjdgCuJF8eUVm75muNlpxN5NPPTmVaYPphclKebX371qK0F0YbJu6HBhXHd5crKo75Zgj6sOKbfmWRvvxYqpYHLotrFa0Zzb133xyu4ww1uFfR7+UtCOHBRQb7wWIu7zJY4=; Received: from p4ffe52c1.dip0.t-ipconnect.de ([79.254.82.193] helo=pandem0nium) by cora.hrz.tu-chemnitz.de with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1V9U9V-00069m-20; Wed, 14 Aug 2013 08:01:49 +0200 Received: from dotslash by pandem0nium with local (Exim 4.80) (envelope-from ) id 1V9U9T-0006we-40; Wed, 14 Aug 2013 08:01:47 +0200 From: Simon Wunderlich To: linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org, Simon Wunderlich , Mathias Kretschmer Subject: [PATCH-resend 6/9] ath5k: report 5/10 MHz channels Date: Wed, 14 Aug 2013 08:01:35 +0200 Message-Id: <1376460098-26648-7-git-send-email-siwu@hrz.tu-chemnitz.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1376460098-26648-1-git-send-email-siwu@hrz.tu-chemnitz.de> References: <1376460098-26648-1-git-send-email-siwu@hrz.tu-chemnitz.de> X-purgate: clean X-purgate-type: clean X-purgate-ID: 154106::1376460109-0000051A-6ACA1A84/0-0/0-0 X-Scan-AV: cora.hrz.tu-chemnitz.de; 2013-08-14 08:01:49; 69c964083f4359a9d6cbb4ec12c61c81 X-Scan-SA: cora.hrz.tu-chemnitz.de; 2013-08-14 08:01:49; b4bea8a7bac77a6e805ec3e62f682abe X-Spam-Score: -1.0 (-) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Simon Wunderlich Signed-off-by: Mathias Kretschmer --- drivers/net/wireless/ath/ath5k/base.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index ce67ab7..260a6fc 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c @@ -1400,6 +1400,16 @@ ath5k_receive_frame(struct ath5k_hw *ah, struct sk_buff *skb, rxs->rate_idx = ath5k_hw_to_driver_rix(ah, rs->rs_rate); rxs->flag |= ath5k_rx_decrypted(ah, skb, rs); + switch (ah->ah_bwmode) { + case AR5K_BWMODE_5MHZ: + rxs->flag |= RX_FLAG_5MHZ; + break; + case AR5K_BWMODE_10MHZ: + rxs->flag |= RX_FLAG_10MHZ; + break; + default: + break; + } if (rxs->rate_idx >= 0 && rs->rs_rate == ah->sbands[ah->curchan->band].bitrates[rxs->rate_idx].hw_value_short)