Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:56627 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758683Ab0EYW7p convert rfc822-to-8bit (ORCPT ); Tue, 25 May 2010 18:59:45 -0400 Received: by fxm5 with SMTP id 5so3804495fxm.19 for ; Tue, 25 May 2010 15:59:44 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: =?ISO-8859-1?Q?G=E1bor_Stefanik?= Date: Wed, 26 May 2010 00:59:23 +0200 Message-ID: Subject: Re: ath5k past 2.6.30 breaks monitor mode (and thus the aircrack suite) To: Bob Copeland Cc: Weedy , linux-wireless , Johannes Berg Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, May 25, 2010 at 4:53 PM, Bob Copeland wrote: > 2010/5/25 Weedy : >> 2010/5/24 G?bor Stefanik : >>> 2010/5/25 Weedy : >>>> 2010/5/23 G?bor Stefanik : >>>>> In the meantime, one thing to test: Add a printk of sc->opmode. >>>> >>>> May 24 22:04:20 tiny-h4x kernel: [41147.243149] sc->opmode: 02 (over9000 times) >>>> >>>> So i'm guessing I did it wrong (I don't know C). >>>> ? ? ? ?printk(KERN_NOTICE "sc->opmode: %02x\n", sc->opmode); >>>> >>> >>> No, that is correct, and proves my theory (2 is NL80211_IFTYPE_STATION >>> - it should be 6 for monitor mode). >>> >>> BTW, please use "Reply to all". >>> >> gmail got rid of the "Reply to all by default" option :< >> >> When you have a patch I will be waiting. > > Sorry, I missed this thread somehow. ?Thanks for the detective > work and apologies for my stupid goof. ?G?bor, are you prepping > a patch? ?I can fix it if you like. > If you can, please fix it - I know what the bug is, but have no solid idea about a fix. (The long-term fix of course would be to make mac80211 say NL80211_IFTYPE_MONITOR for monitor interfaces, but AFAIK it is impossible or unwanted - Johannes can probably shed more light on this. One thing is sure: saying NL80211_IFTYPE_STATION when only a monitor interface is active is wrong; it should be IFTYPE_MONITOR, or if that is impossible, IFTYPE_INVALID.) -- Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)