Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751149AbWAPR7D (ORCPT ); Mon, 16 Jan 2006 12:59:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750982AbWAPR7D (ORCPT ); Mon, 16 Jan 2006 12:59:03 -0500 Received: from ebb.errno.com ([69.12.149.25]:28932 "EHLO ebb.errno.com") by vger.kernel.org with ESMTP id S1750778AbWAPR7C (ORCPT ); Mon, 16 Jan 2006 12:59:02 -0500 Message-ID: <43CBDF32.50109@errno.com> Date: Mon, 16 Jan 2006 10:00:18 -0800 From: Sam Leffler User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051227) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Stuffed Crust CC: Johannes Berg , Jiri Benc , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "John W. Linville" Subject: Re: wireless: recap of current issues (configuration) References: <20060113195723.GB16166@tuxdriver.com> <20060113212605.GD16166@tuxdriver.com> <20060113213011.GE16166@tuxdriver.com> <20060113221935.GJ16166@tuxdriver.com> <1137191522.2520.63.camel@localhost> <20060116152312.6b9ddfd0@griffin.suse.cz> <1137423355.2520.112.camel@localhost> <20060116173325.GC8596@shaftnet.org> In-Reply-To: <20060116173325.GC8596@shaftnet.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1620 Lines: 36 Stuffed Crust wrote: > On Mon, Jan 16, 2006 at 03:55:55PM +0100, Johannes Berg wrote: > >>I really don't see why a plain STA mode card should be required to carry >>around all the code required for AP operation -- handling associations >>of clients, powersave management wrt. buffering, ... Sure, fragmentation > > > From the perspective of the hardware driver, there is little AP or > STA-specific code, especially when IBSS is thrown in. Thick MACs > excepted, there's little more than "frame tx/rx, and hardware control > twiddling". > > The AP/STA smarts happen in the 802.11 stack. And, speaking from > experience, it is very hard to separate them cleanly, at least not > without incurring even more overall complexity and bloat. > > It's far simpler to build them intertwined, then add a bunch of #ifdefs > if you want to disable AP or STA mode individually to save space. Perhaps you haven't hit some of the more recent standards that place more of a burden on the ap implementation? Also some vendor-specific protocol features suck up space for ap mode only and it is nice to be able to include them only as needed. There are several advantages to splitting up the code such as reduced audit complexity and real space savings but I agree that it is an open question whethere there's a big gain to modularizing the code by operating mode. Sam - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/