Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:55706 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932928AbcGEN3s (ORCPT ); Tue, 5 Jul 2016 09:29:48 -0400 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Subject: Re: [v2, 1/3] mwifiex: add a cfg80211 .get_tx_power operation callback From: Kalle Valo In-Reply-To: <1465232558-31678-2-git-send-email-javier@osg.samsung.com> To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, Julian Calaby , Shengzhen Li , Enric Balletbo i Serra , Javier Martinez Canillas , Amitkumar Karwar , netdev@vger.kernel.org, linux-wireless@vger.kernel.org, Nishant Sarmukadam Message-Id: <20160705132947.D4B4060F78@smtp.codeaurora.org> (sfid-20160705_153024_800551_61A5A6A2) Date: Tue, 5 Jul 2016 13:29:47 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org List-ID: Javier Martinez Canillas wrote: > The mwifiex driver implements a cfg80211 .set_tx_power operation handler > but doesn't have the inverse .get_tx_power callback. > > This not only has the effect that the Tx power can't be reported to user > space tools such as iwconfig and iwlist but also that the wireless core > prints a warning when a new wiphy is created due an cfg80211 operation > being implemented without its counterpart. > > After this patch, the Tx power is properly reported to user-space tools: > > $ iwlist mlan0 txpower > mlan0 unknown transmit-power information. > > Current Tx-Power=13 dBm (19 mW) > > and also the following warning isn't shown anymore on the driver probe: > > WARNING: CPU: 3 PID: 127 at net/wireless/core.c:366 wiphy_new_nm+0x66c/0x6ac > Modules linked in: mwifiex_sdio mwifiex > CPU: 3 PID: 127 Comm: kworker/3:1 Tainted: G W 4.7.0-rc1-next-20160531-00006-g569df5b983f3 > Hardware name: SAMSUNG EXYNOS (Flattened Device Tree) > Workqueue: events request_firmware_work_func > [] (unwind_backtrace) from [] (show_stack+0x10/0x14) > [] (show_stack) from [] (dump_stack+0x88/0x9c) > [] (dump_stack) from [] (__warn+0xe8/0x100) > [] (__warn) from [] (warn_slowpath_null+0x20/0x28) > [] (warn_slowpath_null) from [] (wiphy_new_nm+0x66c/0x6ac) > [] (wiphy_new_nm) from [] (mwifiex_register_cfg80211+0x28/0x3f0 [mwifiex]) > [] (mwifiex_register_cfg80211 [mwifiex]) from [] (mwifiex_fw_dpc+0x2b0/0x474 [mwifiex]) > [] (mwifiex_fw_dpc [mwifiex]) from [] (request_firmware_work_func+0x30/0x58) > [] (request_firmware_work_func) from [] (process_one_work+0x124/0x338) > [] (process_one_work) from [] (worker_thread+0x38/0x4d4) > [] (worker_thread) from [] (kthread+0xdc/0xf4) > [] (kthread) from [] (ret_from_fork+0x14/0x3c) > > Signed-off-by: Javier Martinez Canillas > Tested-by: Enric Balletbo i Serra Thanks, 2 patches applied to wireless-drivers-next.git: 7d54bacadce1 mwifiex: add a cfg80211 .get_tx_power operation callback 3ee712857958 mwifiex: add get_antenna support for cfg80211 -- Sent by pwcli https://patchwork.kernel.org/patch/9158855/