From patchwork Mon Dec 6 03:45:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruno Randolf X-Patchwork-Id: 376982 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 oB63jlMU030973 for ; Mon, 6 Dec 2010 03:45:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752480Ab0LFDpo (ORCPT ); Sun, 5 Dec 2010 22:45:44 -0500 Received: from mail30f.wh2.ocn.ne.jp ([220.111.41.203]:3266 "HELO mail30f.wh2.ocn.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752451Ab0LFDpo (ORCPT ); Sun, 5 Dec 2010 22:45:44 -0500 Received: from vs3003.wh2.ocn.ne.jp (125.206.180.231) by mail30f.wh2.ocn.ne.jp (RS ver 1.0.95vs) with SMTP id 5-0830387141 for ; Mon, 6 Dec 2010 12:45:42 +0900 (JST) Received: (qmail 19010 invoked from network); 6 Dec 2010 03:45:41 -0000 Received: from unknown (HELO localhost6.localdomain6) (220.110.201.18) by with SMTP; 6 Dec 2010 03:45:41 -0000 Subject: [PATCH 3/3] ath5k: Set available antenna information for cfg80211 To: johannes@sipsolutions.net, linville@tuxdriver.com From: Bruno Randolf Cc: linux-wireless@vger.kernel.org Date: Mon, 06 Dec 2010 12:45:40 +0900 Message-ID: <20101206034540.11462.95009.stgit@localhost6.localdomain6> In-Reply-To: <20101206034529.11462.48097.stgit@localhost6.localdomain6> References: <20101206034529.11462.48097.stgit@localhost6.localdomain6> User-Agent: StGit/0.15 MIME-Version: 1.0 X-SF-Loop: 1 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.3 (demeter1.kernel.org [140.211.167.41]); Mon, 06 Dec 2010 03:45:47 +0000 (UTC) diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index d74ee0d..e648467 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c @@ -2350,6 +2350,8 @@ ath5k_init_softc(struct ath5k_softc *sc, const struct ath_bus_ops *bus_ops) BIT(NL80211_IFTYPE_ADHOC) | BIT(NL80211_IFTYPE_MESH_POINT); + hw->wiphy->available_antennas = 0x3; /* both can be configured */ + hw->extra_tx_headroom = 2; hw->channel_change_time = 5000;