From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:42758 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751076Ab1JQOhH (ORCPT ); Mon, 17 Oct 2011 10:37:07 -0400 Subject: Re: [PATCH 3.2 REQUEST] b43: HT-PHY: report signal to mac80211 From: Johannes Berg To: Michael =?ISO-8859-1?Q?B=FCsch?= Cc: =?UTF-8?Q?Rafa=C5=82_Mi=C5=82ecki?= , linux-wireless@vger.kernel.org, "John W. Linville" , David Woodhouse , b43-dev@lists.infradead.org In-Reply-To: <20111017162727.388624fc@milhouse> (sfid-20111017_162736_674563_4740EF3F) References: <1318800649-5609-1-git-send-email-zajec5@gmail.com> <20111017162727.388624fc@milhouse> (sfid-20111017_162736_674563_4740EF3F) Content-Type: text/plain; charset="UTF-8" Date: Mon, 17 Oct 2011 16:36:59 +0200 Message-ID: <1318862219.3960.11.camel@jlt3.sipsolutions.net> (sfid-20111017_163715_102930_0D1BBE4C) Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Mon, 2011-10-17 at 16:27 +0200, Michael Büsch wrote: > On Sun, 16 Oct 2011 23:30:49 +0200 > Rafał Miłecki wrote: > > + case B43_PHYTYPE_HT: > > + /* TODO: is max the right choice? */ > > + status.signal = max( > > + (__s8) max(rxhdr->phy_ht_power0, rxhdr->phy_ht_power1), > > Hm, why is this cast needed? Does it throw a warning? The cast should probably be a max_t() instead. johannes