Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:52886 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753320AbcAVLzx convert rfc822-to-8bit (ORCPT ); Fri, 22 Jan 2016 06:55:53 -0500 From: Kalle Valo To: Pali =?utf-8?Q?Roh=C3=A1r?= Cc: Pavel Machek , Arend van Spriel , Ivaylo Dimitrov , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, David Gnedt Subject: Re: [PATCH v2] wl1251: add sysfs interface for bluetooth coexistence mode configuration References: <1451130310-16666-1-git-send-email-pali.rohar@gmail.com> <5696D08F.9030906@broadcom.com> <20160114091654.GA15380@amd> <20160121085331.GO7192@pali> <87d1svyrfl.fsf@kamboji.qca.qualcomm.com> <20160121135110.GH7192@pali> <871t9byotq.fsf@kamboji.qca.qualcomm.com> <20160122092935.GL7192@pali> Date: Fri, 22 Jan 2016 13:55:44 +0200 In-Reply-To: <20160122092935.GL7192@pali> ("Pali =?utf-8?Q?Roh=C3=A1r=22's?= message of "Fri, 22 Jan 2016 10:29:35 +0100") Message-ID: <87wpr1x1z3.fsf@kamboji.qca.qualcomm.com> (sfid-20160122_125619_613389_349F27E4) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: Pali Rohár writes: >> >> > Right, bt-coex is not for debugging purpose, but for normal usage, when >> >> > user want to use together bluetooth and wifi or just one of those. >> >> >> >> I think most of other drivers have a debugfs interface for btcoex, I >> >> guess mostly for testing purposes. But this really should be added to >> >> cfg80211. >> > >> > All other TI wireless drivers have "bt_coex_state" sysfs node. >> >> Then that's a mistake, they shouldn't have that. > > But it is there, wl1251 is also TI wireless driver and for last two > years there is no interface to deal with this problem... > > So as other drivers do, I'm proposing solution which fix bt coex also > for wl1251 driver need on Nokia N900. Even if the wlcore sysfs interface fell through the cracks it's no excuse to add more private interfaces to wireless drivers. We have cfg80211 and all generic interfaces, like btcoex control, should go through that subsystem. That way all drivers can share a common interface and everyone are happy. What I suggest is that you add this yourself to cfg80211 and mac80211. It's not that hard and I think you could use NL80211_CMD_SET_POWER_SAVE as an example. -- Kalle Valo