You are not logged in.

#1 2010-10-20 16:31:37

rayman
Member
Registered: 2010-09-09
Posts: 37

[SOLVED]Fixed channel -1

When using hostapd, or airodump-ng with a fixed channel(-c channelnumber), I get a message "Fixed channel -1".
I don't have any networking-apps running, nothing that changes the channel. I've read the aircrack-ng wiki entry about this. I think this is a problem in "compat-wireless". I tried to patch it using the code on http://ubuntuforums.org/showthread.php?t=1598930, but nothing's changed. I have an Atheros network card, and I'm using ath5k.
When using madwifi, I don't get the fixed channel error, but with madwifi, when I try to change my mac-adress(wlanconfig wlan0 destroy; macchanger -m 12:34:56:78:90:12 wifi0; wlanconfig dev wlan0 .....), the new wlan0 device has get's the mac-adress I wanted, but the second number in the mac-adress, is changed to a 6(the wlan0 mac-adress would be "16:34:56:78:90:12").

If there is a solution for one of the two problems, I'm happy.
Thanks!

[EDIT]Solved, I deleted my other kernel, and tried it again.

Last edited by rayman (2010-10-20 18:03:10)

Offline

#2 2010-10-20 18:07:00

cruznick
Member
From: México
Registered: 2010-07-15
Posts: 37
Website

Re: [SOLVED]Fixed channel -1

You need to add an extra patch to compat-wireless for fixing the -1 channel: channel-negative-one-maxim.patch and recompile I have 2 (daily and stable releases ) PKGBUILDs in AUR for compat-wireless that includes both patches you can use them

Edit 1 : I missed the links
http://aur.archlinux.org/packages.php?ID=41472
http://aur.archlinux.org/packages.php?ID=41485

Last edited by cruznick (2010-10-20 18:08:12)

Offline

#3 2010-10-20 19:34:07

rayman
Member
Registered: 2010-09-09
Posts: 37

Re: [SOLVED]Fixed channel -1

Thanks. I already tried using wireless-compat-all, from AUR, but that didn't work.

Offline

#4 2010-10-26 19:03:21

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 505

Re: [SOLVED]Fixed channel -1

Not working for me:
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
    Kernel driver in use: iwl3945
    Kernel modules: iwl3945
I see some loop errors when installing then I'm unable to load with iwl-load iwlagn or iwl-enable , any idea?

I also removed the old kernel from /usr/src/ and var/lib

Errors during compilation:

  CC [M]  /tmp/bauerbill/build/aur/compat-wireless-all/src/compat-wireless-2010-08-26/drivers/net/wireless/iwlwifi/iwl3945-base.o
/tmp/bauerbill/build/aur/compat-wireless-all/src/compat-wireless-2010-08-26/drivers/net/wireless/iwlwifi/iwl3945-base.c:30:0: warning: "pr_fmt" redefined
include/linux/kernel.h:381:0: note: this is the location of the previous definition
AND
 CC [M]  /tmp/bauerbill/build/aur/compat-wireless-all/src/compat-wireless-2010-08-26/drivers/net/wireless/iwlwifi/iwl-agn.o
/tmp/bauerbill/build/aur/compat-wireless-all/src/compat-wireless-2010-08-26/drivers/net/wireless/iwlwifi/iwl-agn.c:30:0: warning: "pr_fmt" redefined
include/linux/kernel.h:381:0: note: this is the location of the previous definition

During installation:

--> Running pacman: '/usr/bin/sudo' '/usr/bin/pacman' '--config' '/etc/pacman.conf' '-U' '/tmp/bauerbill/build/aur/compat-wireless-all/compat-wireless-all-2010_08_26-2-i686.pkg.tar.xz' '--cachedir' '/var/cache/pacman/pkg/'
resolving dependencies...
looking for inter-conflicts...

Targets (1): compat-wireless-all-2010_08_26-2

Total Download Size:    0.00 MB
Total Installed Size:   1.81 MB

Proceed with installation? [Y/n] y
checking package integrity...
(1/1) checking for file conflicts                                                              [#######################################################] 100%
(1/1) installing compat-wireless-all                                                           [#######################################################] 100%
depmod will prefer updates/ over kernel/ -- OK!

Module ath_pci not detected -- this is fine
Module iwl4965 not detected -- this is fine

Madwifi has been disabled, if present. If you would like to enable MadWifi
at a later time and disable ath5k, you can run: sudo athload madwifi
To use the new modules, unload your old wireless modules first and load them
again, or simply reboot.

Make sure to have read the full documentation at http://wireless.kernel.org/en/users/Download

--> Done

I have tried with both compat-wireless-patched and also with compat-wireless-all

Last edited by r0b0t (2010-10-26 19:17:53)

Offline

#5 2010-10-26 19:43:24

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: [SOLVED]Fixed channel -1

r0b0t, have you tried patching a vanilla kernel on your own? Try it, maybe it'll payoff.

Offline

#6 2010-10-26 20:08:14

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 505

Re: [SOLVED]Fixed channel -1

Hi archman-cro,

I don't have time to work for patching kernels, If I wanted to patch a kernel the first patch to apply will be the gr-security patch.
I stay on my pc 3-4 h, the rest is at work and at work I use ubuntu (forced sad by the staff.)

After installing the compat-wireless-all at least I have the wlan0 interface and I'm able to load the driver, but now I need to patch the file.
wireless/chan.c
I don't find it hmm
locate chan.c (after updatedb)
and
find / -iname chan.c gives me no results.

Any idea?

Offline

#7 2010-10-26 20:28:35

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: [SOLVED]Fixed channel -1

Erm, /net/wireless/chan.c is in the kernel tree. You're supposed to patch it at the kernelbuild time, I guess...

Offline

#8 2010-10-26 20:43:28

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 505

Re: [SOLVED]Fixed channel -1

Great,
I'm waiting for .36 then.

Offline

#9 2010-10-26 21:13:25

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: [SOLVED]Fixed channel -1

The .36 will not fix this issue. I still had to apply the patch against it.

Offline

#10 2010-10-28 12:44:17

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 505

Re: [SOLVED]Fixed channel -1

It's very weird, I never used compat-wireless and my card worked just fine, then after some kernel upgrade, I don't remember which version the channel -1 issue popped up..
I don't understand why with the current kernel I'm unable to define the channel to monitor and the card is listening in all channels and with the kernel before just worked fine...
I didn't ever install compat-wireless.
So if this is not a kernel bug it's an aircrack bug?
I don't know what to say...
I'm better learn some kernel basics and make my own one...

Offline

#11 2010-10-28 12:47:49

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: [SOLVED]Fixed channel -1

Hi all, I have the same problema: Fixed channel -1 on a Intel Wifi Link 5300.
What should I do? I use the driver iwlagn.

Thanks.

PD:I write little because my English is a bit basic

Offline

#12 2010-10-28 15:26:11

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: [SOLVED]Fixed channel -1

takedown, apply http://patches.aircrack-ng.org/channel- … axim.patch against your kernel. That's how I do it, since I use my own kernel mod. Maybe there's an another option out now, though, I dunno.

Offline

#13 2010-11-02 17:34:36

meborc
Member
Registered: 2010-11-02
Posts: 3

Re: [SOLVED]Fixed channel -1

archman-cro wrote:

The .36 will not fix this issue. I still had to apply the patch against it.

does that mean .36 was out before the batch and next kernel version should have it included? I'm asking because I really like to keep my arch setup as clean as possible, whenever I compile my own kernel I seem to either forget something or have too many options extra.

Offline

#14 2010-11-02 20:59:27

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: [SOLVED]Fixed channel -1

Well, I just wanted to say that 2.6.36 didn't have the fix. Doesn't mean it won't be built into the next release, or the 2.6.36-ARCH. But knowing Arch, I think it won't be included, since not much people are affected. smile
Not sure, though. smile

Offline

#15 2010-11-03 01:41:55

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: [SOLVED]Fixed channel -1

im not sure if this is a bug or some feature change in the kernel that needs to propagate to userspace.

Offline

#16 2010-11-03 11:39:33

meborc
Member
Registered: 2010-11-02
Posts: 3

Re: [SOLVED]Fixed channel -1

eldragon wrote:

im not sure if this is a bug or some feature change in the kernel that needs to propagate to userspace.

There is an interesting discussion on the topic @ http://trac.aircrack-ng.org/ticket/742

seems like no kernel compilation is needed... this post at the ubuntuforums has stepbystep guide http://ubuntuforums.org/showpost.php?p= … ostcount=1 will try later to fix my arch netbook and report back!

smile

Last edited by meborc (2010-11-03 11:45:03)

Offline

#17 2010-11-04 08:43:31

meborc
Member
Registered: 2010-11-02
Posts: 3

Re: [SOLVED]Fixed channel -1

cruznick wrote:

You need to add an extra patch to compat-wireless for fixing the -1 channel: channel-negative-one-maxim.patch and recompile I have 2 (daily and stable releases ) PKGBUILDs in AUR for compat-wireless that includes both patches you can use them

Edit 1 : I missed the links
http://aur.archlinux.org/packages.php?ID=41472
http://aur.archlinux.org/packages.php?ID=41485

THANKS! I tried the daily one yesterday and now everything works as it should... Excellent work!

Offline

#18 2010-11-22 01:09:36

goll
Member
From: Croatia
Registered: 2007-10-29
Posts: 50

Re: [SOLVED]Fixed channel -1

@cruznick: Thanks for the packages but unfortunately I've run into some problems sad

Here's what I did:

I have a stable system with core, extra and community repo enabled. I downloaded the kernel 2.6.36-3 and kernel-headers 2.6.36-3 from the testing repo and installed them.

Compiled both of your packages, stable and daily. With the stable package, the wireless works, but as soon as i try to issue airmon-ng start wlan0 I get a kernel panic described here:

https://bbs.archlinux.org/viewtopic.php?id=108139

With the daily package, the wireless doesn't work at all, the modules don't get loaded properly sad

Any ideas?

Offline

Board footer

Powered by FluxBB