Return-path: Received: from mail-pd0-f170.google.com ([209.85.192.170]:63510 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750722AbaBBFT4 (ORCPT ); Sun, 2 Feb 2014 00:19:56 -0500 Received: by mail-pd0-f170.google.com with SMTP id p10so5739926pdj.15 for ; Sat, 01 Feb 2014 21:19:56 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 2 Feb 2014 10:49:55 +0530 Message-ID: (sfid-20140202_062000_664912_F510437F) Subject: Re: mwifiex and SD8787: How to create AP interface? From: Avinash Patil To: Andrew Wiley Cc: "linux-wireless@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi Andrew, Will surely document this and other steps on mwifiex wiki page soon. Please share timeout log as well. Thanks, Avinash Patil On Sun, Feb 2, 2014 at 10:31 AM, Andrew Wiley wrote: > Hello Avinash, > > Thanks! That works for me. Would it be possible to add this to the > mwifiex page on wireless.kernel.org? As far as I know, this command is > completely undocumented within iw, and I know I'm not the only > Dreamplug owner experiencing this problem. > > As for other issues, I'm seeing a hang in the TX queue on the device > after running an AP for a while, but I'm still gathering information > on that. I'll follow up with another thread. > > Thanks, > Andrew > > On Sat, Feb 1, 2014 at 9:48 PM, Avinash Patil wrote: >> Hi Andrew, >> >> AP interface can be created using iw utility. Command is as follows: >> >> iw dev mlan0 interface add uap0 type __ap >> >> There onwards hostapd can be used to start mwifiex AP operations. Please let >> me know if you face any issues. >> >> Thanks, >> Avinashw >> >> On Feb 2, 2014 8:28 AM, "Andrew Wiley" wrote: >>> >>> Hello linux-wireless, >>> >>> I'm trying to get AP mode to work on a Marvell Kirkwood-based >>> Dreamplug with an SD8787 SDIO wireless chipset. >>> >>> Originally, the mwifiex driver would create three interfaces when it >>> loaded - mlan0, uap0, and ptp0, for station mode, AP mode, and PTP >>> mode, respectively. That behavior was removed in commit 1211c ( >>> >>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/net/wireless/mwifiex?id=1211c961170cedb21c30d5bb7e2033c8720b38db >>> ) because NetworkManager was trying to use all of the interfaces >>> rather than just mlan0. >>> >>> As I understand it, the normal workflow for this is that hostapd >>> changes an interface from station mode to AP mode when it starts up, >>> but when it tries to do this on the mlan0 interface, nl80211 returns >>> Operation Not Supported. Depending on the version of hostapd, it >>> either bails out there or tries to continue and bails out later in >>> setup. >>> >>> If I revert the patch I linked above, the driver creates the uap0 >>> interface and I can run an AP with hostapd (although it has some other >>> issues - more on that in a later post). >>> >>> What is the "correct" way to access AP mode with this driver? As far >>> as I'm aware, there are no userspace utilities to directly create an >>> AP-mode interface, and mwifiex doesn't seem to support the normal >>> workflow that hostapd is trying to do. >>> >>> Thanks, >>> Andrew >>> -- >>> To unsubscribe from this list: send the line "unsubscribe linux-wireless" >>> in >>> the body of a message to majordomo@vger.kernel.org >>> More majordomo info at http://vger.kernel.org/majordomo-info.html > -- > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html