Return-path: Received: from wolverine02.qualcomm.com ([199.106.114.251]:17381 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750841AbaKYI6p (ORCPT ); Tue, 25 Nov 2014 03:58:45 -0500 From: Kalle Valo To: Michal Kazior CC: "ath10k@lists.infradead.org" , linux-wireless Subject: Re: [PATCH 3/3] ath10k: fix station count enforcement References: <1416834909-7130-1-git-send-email-michal.kazior@tieto.com> <1416834909-7130-3-git-send-email-michal.kazior@tieto.com> <87d28b3dzg.fsf@kamboji.qca.qualcomm.com> Date: Tue, 25 Nov 2014 10:58:39 +0200 In-Reply-To: (Michal Kazior's message of "Tue, 25 Nov 2014 09:38:41 +0100") Message-ID: <87ioi31wsg.fsf@kamboji.qca.qualcomm.com> (sfid-20141125_095848_640687_92E9B383) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: linux-wireless-owner@vger.kernel.org List-ID: Michal Kazior writes: >>> int ath10k_core_start(struct ath10k *ar, enum ath10k_firmware_mode mode) >>> { >>> int status; >>> @@ -939,6 +950,8 @@ int ath10k_core_start(struct ath10k *ar, enum ath10k_firmware_mode mode) >>> else >>> ar->free_vdev_map = (1LL << TARGET_NUM_VDEVS) - 1; >>> >>> + ath10k_core_init_max_sta_count(ar); >> >> I don't see the need to call this during every firmware start as these >> are not changed afterwards. I think it would be better to call this once >> just after ath10k_core_fetch_firmware_files() is called. > > Hmm.. It makes sense but now that I think about it the max number of > peers should actually depend on WMI_SERVICE_IRAM_TIDS which is known > after booting firmware. However since only 10.x was released with the > service enabled we used fw_features. So.. I think this is good enough for now. We can always improve this later. > yeah. I can move the function call if you want though. Please do that. To keep things simple I would like to have the absolute minimum in start() calls. -- Kalle Valo