From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AFCA9C433E0 for ; Thu, 11 Jun 2020 11:30:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 85200207C3 for ; Thu, 11 Jun 2020 11:30:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591875013; bh=fkkqzxBFgHGAb88n0qp01YgTeaU1w9laNmqo4DGnoiY=; h=Date:From:To:Subject:List-ID:From; b=JxS4SmcPS49KKnX5WjZ1oopZvSf7MyDsbwR/aJ8COuBi1rMifzHfJXkvj8Tcc4r+A 4ElIm78vyzPG/NlLlJkKXEPO16rjh2tfK5LdQtKduD/F4Bi0ayZlX9NBTuvBnpco3Y lCraT9o4DYSlYRfV7WLXClrWkWL/m5ATcm9HVca8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727889AbgFKLaM (ORCPT ); Thu, 11 Jun 2020 07:30:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:50850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727084AbgFKLaM (ORCPT ); Thu, 11 Jun 2020 07:30:12 -0400 Received: from pali.im (pali.im [31.31.79.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 180D82078D; Thu, 11 Jun 2020 11:30:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591875012; bh=fkkqzxBFgHGAb88n0qp01YgTeaU1w9laNmqo4DGnoiY=; h=Date:From:To:Subject:From; b=FCZ24leKXFbhlMpb6YLeI0ORR0vcsIspHztUhT8pCHi7EzYlvtqqrboYvOwxl+rZ7 tXXqwmRkGa8hNGxtk+1Bnjj7X/xIsD/Uor3sPE/CKRbbmM/F/mrjsbRE1xIcCnwIa6 tnA/D6lLQTDFXrSemC/FtHbaui5IImWpoD+wkrk4= Received: by pali.im (Postfix) id 171F6851; Thu, 11 Jun 2020 13:30:10 +0200 (CEST) Date: Thu, 11 Jun 2020 13:30:09 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Ganapathi Bhat , Amitkumar Karwar , Xinming Hu , linux-wireless@vger.kernel.org, Marek =?utf-8?B?QmVow7pu?= Subject: mwifiex: Maximal number of AP interfaces Message-ID: <20200611113009.v7cpybecc55vtni2@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20180716 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hello! mwifiex kernel driver has currently hardcoded maximal number of AP interfaces to 3. It is defined by MWIFIEX_MAX_UAP_NUM constant and '.max' member in 'mwifiex_ap_sta_limits' structure. I tried to increase this limit and figured out that SD8997 card can create four independent BSSIDs in AP mode. Not only 3. Scanning for wifi networks on another device proved that SD8997 was really broadcasting 4 SSIDs. When I tried to create fifth AP interface/SSID then mwifiex received error "mwifiex_cmd_timeout_func: Timeout cmd id = 0x4d, act = 0x1" and then card firmware crashed. SDIO card was then unregistered from bus. I would like to increase maximal number of AP interface to 4 as it is supported by SD8997 card. But it cannot be done easily as for other cards managed by mwifiex driver which do not support more then 3 ap interfaces, it can cause problems... Looks like that maximal number of AP interfaces is firmware dependent number. Do you know if it is possible to retrieve this maximal count from card firmware via some special command? Or do you know how to determinate maximal number of AP interfaces?