From patchwork Mon Jan 3 05:46:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 446791 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 p035khBd004608 for ; Mon, 3 Jan 2011 05:46:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751699Ab1ACFql (ORCPT ); Mon, 3 Jan 2011 00:46:41 -0500 Received: from mail-wy0-f174.google.com ([74.125.82.174]:44346 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751119Ab1ACFqk (ORCPT ); Mon, 3 Jan 2011 00:46:40 -0500 Received: by wyb28 with SMTP id 28so13074751wyb.19 for ; Sun, 02 Jan 2011 21:46:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=n8mpPV8noyJtmIaah3Gpe9EwqXmdVS5UY6aSpaZa9e0=; b=Px5hSfmUlHU+0IYiWqLX70xvStLUft3pZmLQl5mXLEVcq7la+nuttqM9JgutQNldXt 1ExFjIvU+SWOkjmeqSpQFF7KMVvJQroSc74hz01jMg4TBKEQTQnQ+Gx3o/24PngQ1cqT nE+qCVKLOmDnjxmZQilkv+eMxquJahC4RCrus= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=PNYzskPXy1eXmWLQbvFQ/A3mDDuDEfzEcC25bA6WGAOQgWkjUbEatFIB+BOsr6L6K3 KG83C+J88fk2DAmnJP4ySYz+v+RHUCg9q6G/DuGH8ZDIV+vfy6REii0S03xwycjJtMcx 445n+wnx8PeBNTqkWWfhbEfGKf7U2RKlG+700= Received: by 10.216.179.144 with SMTP id h16mr19805528wem.64.1294033599022; Sun, 02 Jan 2011 21:46:39 -0800 (PST) Received: from bicker ([41.202.225.145]) by mx.google.com with ESMTPS id i80sm9618327wej.4.2011.01.02.21.46.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 02 Jan 2011 21:46:38 -0800 (PST) Date: Mon, 3 Jan 2011 08:46:29 +0300 From: Dan Carpenter To: "Luis R. Rodriguez" Cc: Nick Kossifidis , Jiri Slaby , Bob Copeland , "John W. Linville" , linux-wireless@vger.kernel.org, ath5k-devel@venema.h4ckr.net, kernel-janitors@vger.kernel.org Subject: [patch -next] ath5k: ath5k_eeprom_mode_from_channel() returns signed Message-ID: <20110103054629.GR1886@bicker> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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, 03 Jan 2011 05:46:44 +0000 (UTC) diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c index 9306d5f..78c26fd 100644 --- a/drivers/net/wireless/ath/ath5k/phy.c +++ b/drivers/net/wireless/ath/ath5k/phy.c @@ -1916,7 +1916,8 @@ ath5k_hw_set_antenna_mode(struct ath5k_hw *ah, u8 ant_mode) struct ieee80211_channel *channel = ah->ah_current_channel; bool use_def_for_tx, update_def_on_tx, use_def_for_rts, fast_div; bool use_def_for_sg; - u8 def_ant, tx_ant, ee_mode; + int ee_mode; + u8 def_ant, tx_ant; u32 sta_id1 = 0; /* if channel is not initialized yet we can't set the antennas @@ -3081,7 +3082,8 @@ ath5k_hw_txpower(struct ath5k_hw *ah, struct ieee80211_channel *channel, { struct ath5k_rate_pcal_info rate_info; struct ieee80211_channel *curr_channel = ah->ah_current_channel; - u8 type, ee_mode; + int ee_mode; + u8 type; int ret; if (txpower > AR5K_TUNE_MAX_TXPOWER) {