Return-path: Received: from coyote.holtmann.net ([212.227.132.17]:33951 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751399AbeBAIUm (ORCPT ); Thu, 1 Feb 2018 03:20:42 -0500 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: [v5 7/8] rsi: add module parameter operating mode From: Marcel Holtmann In-Reply-To: <87a7wtmbf0.fsf@purkki.adurom.net> Date: Thu, 1 Feb 2018 09:20:39 +0100 Cc: Amitkumar Karwar , linux-wireless@vger.kernel.org, Amitkumar Karwar , Prameela Rani Garnepudi , linux-bluetooth@vger.kernel.org, Siva Rebbagondla Message-Id: <6E3DC959-D3C0-4638-A94B-5F800A3A89DC@holtmann.org> (sfid-20180201_092045_786468_839E787C) References: <1513168977-2121-1-git-send-email-amitkarwar@gmail.com> <1513168977-2121-8-git-send-email-amitkarwar@gmail.com> <87a7wtmbf0.fsf@purkki.adurom.net> To: Kalle Valo Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi Kalle, >> Operating mode determines the support for other protocols. >> This is made as module parameter for better usage. >> >> Signed-off-by: Prameela Rani Garnepudi >> Signed-off-by: Siva Rebbagondla >> Signed-off-by: Amitkumar Karwar > > [...] > >> +/* Default operating mode is wlan STA + BT */ >> +static u16 dev_oper_mode = DEV_OPMODE_STA_BT_DUAL; >> +module_param(dev_oper_mode, ushort, 0444); >> +MODULE_PARM_DESC(dev_oper_mode, >> + "1[Wi-Fi], 4[BT], 8[BT LE], 5[Wi-Fi STA + BT classic]\n" >> + "9[Wi-Fi STA + BT LE], 13[Wi-Fi STA + BT classic + BT LE]\n" >> + "6[AP + BT classic], 14[AP + BT classic + BT LE]"); > > I really wish that we have nl80211 interface for configuring btcoex. We > have been talking about that for years but nobody has implemented it :( the Bluetooth subsystem and Wireless subsystem can handle that perfectly between themselves. Involving userspace is utterly pointless. First step should be that the Wireless subsystem has an option to inform its actively used frequencies to the Bluetooth subsystem. It then could adjust AFP channel mapping. Regards Marcel