Return-path: Received: from charlotte.tuxdriver.com ([70.61.120.58]:40470 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757534Ab2CEUrF (ORCPT ); Mon, 5 Mar 2012 15:47:05 -0500 Date: Mon, 5 Mar 2012 15:42:52 -0500 From: "John W. Linville" To: Johannes Berg Cc: linux-wireless Subject: Re: [PATCH] cfg80211/mac80211: report signal strength for mgmt frames Message-ID: <20120305204251.GH18128@tuxdriver.com> (sfid-20120305_214712_295767_70527CBC) References: <1330692035.8542.14.camel@jlt3.sipsolutions.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <1330692035.8542.14.camel@jlt3.sipsolutions.net> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Fri, Mar 02, 2012 at 01:40:35PM +0100, Johannes Berg wrote: > From: Johannes Berg > > Add the signal strength (in dBm only for now) to > frames that are received via nl80211's various > frame APIs. > > Signed-off-by: Johannes Berg > --- > include/linux/nl80211.h | 6 ++++++ > include/net/cfg80211.h | 8 +++++--- > net/mac80211/rx.c | 13 +++++++++++-- > net/wireless/mlme.c | 7 ++++--- > net/wireless/nl80211.c | 9 +++++++-- > net/wireless/nl80211.h | 3 ++- > 6 files changed, 35 insertions(+), 11 deletions(-) CC drivers/net/wireless/ath/ath6kl/wmi.o drivers/net/wireless/ath/ath6kl/wmi.c: In function ‘ath6kl_wmi_rx_probe_req_event_rx’: drivers/net/wireless/ath/ath6kl/wmi.c:559:3: warning: passing argument 3 of ‘cfg80211_rx_mgmt’ makes integer from pointer without a cast include/net/cfg80211.h:3205:6: note: expected ‘int’ but argument is of type ‘u8 *’ drivers/net/wireless/ath/ath6kl/wmi.c:559:3: warning: passing argument 4 of ‘cfg80211_rx_mgmt’ makes pointer from integer without a cast include/net/cfg80211.h:3205:6: note: expected ‘const u8 *’ but argument is of type ‘u16’ drivers/net/wireless/ath/ath6kl/wmi.c:559:3: error: too few arguments to function ‘cfg80211_rx_mgmt’ include/net/cfg80211.h:3205:6: note: declared here drivers/net/wireless/ath/ath6kl/wmi.c: In function ‘ath6kl_wmi_rx_action_event_rx’: drivers/net/wireless/ath/ath6kl/wmi.c:598:2: warning: passing argument 3 of ‘cfg80211_rx_mgmt’ makes integer from pointer without a cast include/net/cfg80211.h:3205:6: note: expected ‘int’ but argument is of type ‘u8 *’ drivers/net/wireless/ath/ath6kl/wmi.c:598:2: warning: passing argument 4 of ‘cfg80211_rx_mgmt’ makes pointer from integer without a cast include/net/cfg80211.h:3205:6: note: expected ‘const u8 *’ but argument is of type ‘u16’ drivers/net/wireless/ath/ath6kl/wmi.c:598:2: error: too few arguments to function ‘cfg80211_rx_mgmt’ include/net/cfg80211.h:3205:6: note: declared here make[3]: *** [drivers/net/wireless/ath/ath6kl/wmi.o] Error 1 -- John W. Linville Someday the world will need a hero, and you linville@tuxdriver.com might be all we have. Be ready.