From patchwork Fri Aug 24 03:29:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Yeow Yeoh X-Patchwork-Id: 1369761 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id BD0AFDF264 for ; Fri, 24 Aug 2012 03:31:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753000Ab2HXDbZ (ORCPT ); Thu, 23 Aug 2012 23:31:25 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:48388 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752321Ab2HXDbY (ORCPT ); Thu, 23 Aug 2012 23:31:24 -0400 Received: by pbbrr13 with SMTP id rr13so2630919pbb.19 for ; Thu, 23 Aug 2012 20:31:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=7ae6bExw6Jmej09hFbvIP+51LGCrTcs4SDXnF8zkMck=; b=hDeLibN2jOCviMUMEQh7sg26rpAIPH0mUOnAJERJ7lTulokH3GrzKTBMJ95wIDFKx4 bqD1DULt5rCuzhRy/yo7uSV2e1bXNrI9wKIlx3GYA62555rDLq6GgC67Xpff8JIS1h4k htr4WoqYiu2EK3jfAfFgXxyjabSjp1P2ilyRtyuEW3CRmUeygqo8joupvby363aFkQpI Qv/46YLnLbqH1ucU94R/LEyz9bR09s658kgIK1T/XBQL73vHYh9j/Dg5vcOUnXDyiMyV Dy2e9SW87X01ANAR90jLtORZgqTlWlrD9aS301ofiWVWcoBTW8mABc8ITItqrseYB925 ylRQ== Received: by 10.68.203.230 with SMTP id kt6mr9242711pbc.163.1345779084090; Thu, 23 Aug 2012 20:31:24 -0700 (PDT) Received: from localhost.localdomain ([58.26.233.146]) by mx.google.com with ESMTPS id qn3sm7360888pbc.6.2012.08.23.20.31.20 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Aug 2012 20:31:23 -0700 (PDT) From: Chun-Yeow Yeoh To: linux-wireless@vger.kernel.org Cc: jirislaby@gmail.com, mickflemm@gmail.com, mcgrof@qca.qualcomm.com, ath5k-devel@lists.ath5k.org, Chun-Yeow Yeoh Subject: [PATCH] ath5k: set hw mfp capable flag for secured mesh Date: Fri, 24 Aug 2012 11:29:53 +0800 Message-Id: <1345778993-23033-1-git-send-email-yeohchunyeow@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The IEEE80211_HW_MFP_CAPABLE is required to ensure the successful key installation of CIPHER_AES_CMAC (currently done in software) for secured mesh. Signed-off-by: Chun-Yeow Yeoh --- drivers/net/wireless/ath/ath5k/base.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index a0a202d..4605fe1 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c @@ -2446,7 +2446,8 @@ ath5k_init_ah(struct ath5k_hw *ah, const struct ath_bus_ops *bus_ops) hw->flags = IEEE80211_HW_RX_INCLUDES_FCS | IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | IEEE80211_HW_SIGNAL_DBM | - IEEE80211_HW_REPORTS_TX_ACK_STATUS; + IEEE80211_HW_REPORTS_TX_ACK_STATUS | + IEEE80211_HW_MFP_CAPABLE; hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_AP) |