From patchwork Wed Apr 13 05:57:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sujith Manoharan X-Patchwork-Id: 703041 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3D5si2G026860 for ; Wed, 13 Apr 2011 05:54:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757528Ab1DMFyn (ORCPT ); Wed, 13 Apr 2011 01:54:43 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:62387 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757052Ab1DMFym (ORCPT ); Wed, 13 Apr 2011 01:54:42 -0400 Received: by mail-iy0-f174.google.com with SMTP id 14so275754iyb.19 for ; Tue, 12 Apr 2011 22:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:x-mailer:cc:subject; bh=WnwY0bgowNurmJZeiOWv13YsqLnmUmoaYCQNTISM+wA=; b=gtBBKgo+Efuk0/jB44jc/ny6KO1URUz9hPzpKGexUZTNH49+3fbNdBCRFOhaXkCw1/ LRUII1WV8wBOLj2erYkXJ1/e7YTB7baNLO7UglJyD6z5fNoaFWG8BAOAzw7mVWKRzdU+ 2X2/aJsNB67EMdEpP8NintvMOXZmBnQsbSccA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:mime-version:content-type:content-transfer-encoding:message-id :date:to:x-mailer:cc:subject; b=fM6En8uKDabf6e/uM5i98ofKcNXKmHtPVr5iBEvYJi/wyYpNb9xHsIDQJwvnP9zLss DqCNO3nJdMa1AIWANXymgg930AlCP7iHcPLApwVHll7cOOMacXwHUeUfpS8n2aKr0ZFP 4GdaWd9dbM6am5Wsa0gdHuWvy9faoWGLoVsKk= Received: by 10.42.199.210 with SMTP id et18mr8480581icb.38.1302674082386; Tue, 12 Apr 2011 22:54:42 -0700 (PDT) Received: from atheros-test ([182.72.177.186]) by mx.google.com with ESMTPS id f28sm182313ibh.50.2011.04.12.22.54.39 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Apr 2011 22:54:41 -0700 (PDT) From: Sujith MIME-Version: 1.0 Message-ID: <19877.15154.818312.300907@gargle.gargle.HOWL> Date: Wed, 13 Apr 2011 11:27:06 +0530 To: linville@tuxdriver.com X-Mailer: VM 8.1.1 under 23.3.1 (x86_64-unknown-linux-gnu) CC: linux-wireless@vger.kernel.org, ath9k-devel@venema.h4ckr.net Subject: [PATCH 40/40] ath9k_htc: Enable AP and P2P modes Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 13 Apr 2011 05:54:45 +0000 (UTC) From: Sujith Manoharan Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath9k/htc_drv_init.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c index 0aec259..22736eb 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c @@ -752,7 +752,10 @@ static void ath9k_set_hw_capab(struct ath9k_htc_priv *priv, hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | - BIT(NL80211_IFTYPE_ADHOC); + BIT(NL80211_IFTYPE_ADHOC) | + BIT(NL80211_IFTYPE_AP) | + BIT(NL80211_IFTYPE_P2P_GO) | + BIT(NL80211_IFTYPE_P2P_CLIENT); hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT;