ath5k usage - Setup

This is a discussion on ath5k usage - Setup ; Does anyone use the ath5k driver ( http://madwifi.org/wiki/About/ath5k ) regularly? I can't seem to get it to work. For the last kernel I built (2.6.25.5), I thought I'd give it a try for my AR5212 Atheros card. While the Madwifi ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: ath5k usage

  1. ath5k usage


    Does anyone use the ath5k driver (http://madwifi.org/wiki/About/ath5k)
    regularly? I can't seem to get it to work. For the last kernel I built
    (2.6.25.5), I thought I'd give it a try for my AR5212 Atheros card. While
    the Madwifi drivers work great, I can't get any real results out of ath5k.
    The first test was just monitor mode, to see if it saw traffic. It
    mangaged to grab 3 packets, all invalid (unreadable via
    tcpdump/tshark/etc). Another strange thing is that it sets the light on
    the back of the card to a constant "on" state. This light usually blinks
    during normal use while using the Madwifi drivers. The module loads OK,
    the card is recognized. It will take parameters via iwconfig and take an
    IP address. In other words, it appears to work fine - only doesn't


    su -l -s /bin/ksh
    Password:

    hello, world
    Today is Boomtime, the 16th day of Confusion in the YOLD 3174
    root@ root $ ip link show
    1: lo: mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: eth0: mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:11:11:2b:6f:83 brd ff:ff:ff:ff:ff:ff

    root@ root $ modinfo ath5k
    filename: /lib/modules/2.6.25.5/kernel/drivers/net/wireless/ath5k/ath5k.ko.gz
    version: 0.1.1 (EXPERIMENTAL)
    license: Dual BSD/GPL
    description: Support for 5xxx series of Atheros 802.11 wireless LAN cards.
    author: Nick Kossifidis
    author: Jiri Slaby
    srcversion: 77DC604AB448D99160D5FD9
    alias: pci:v0000168Cd00000024sv*sd*bc*sc*i*
    alias: pci:v0000168Cd00000023sv*sd*bc*sc*i*
    alias: pci:v0000168Cd0000001Csv*sd*bc*sc*i*
    alias: pci:v0000168Cd0000001Bsv*sd*bc*sc*i*
    alias: pci:v0000168Cd0000001Asv*sd*bc*sc*i*
    alias: pci:v0000168Cd00000019sv*sd*bc*sc*i*
    alias: pci:v0000168Cd00000018sv*sd*bc*sc*i*
    alias: pci:v0000168Cd00000017sv*sd*bc*sc*i*
    alias: pci:v0000168Cd00000016sv*sd*bc*sc*i*
    alias: pci:v0000168Cd00000015sv*sd*bc*sc*i*
    alias: pci:v0000168Cd00000014sv*sd*bc*sc*i*
    alias: pci:v0000168Cd00001014sv*sd*bc*sc*i*
    alias: pci:v000010B7d00000013sv*sd*bc*sc*i*
    alias: pci:v0000A727d00000013sv*sd*bc*sc*i*
    alias: pci:v0000168Cd00000013sv*sd*bc*sc*i*
    alias: pci:v0000168Cd00000012sv*sd*bc*sc*i*
    alias: pci:v0000168Cd00000011sv*sd*bc*sc*i*
    alias: pci:v0000168Cd00000007sv*sd*bc*sc*i*
    alias: pci:v0000168Cd00000207sv*sd*bc*sc*i*
    depends: mac80211
    vermagic: 2.6.25.5 mod_unload PENTIUM4
    parm: debug:uint
    root@ root $ modprobe ath5k

    root@ root $ ip addr add 192.168.30.1/24 broadcast + dev wlan0

    root@ root $ iwconfig wlan0 mode monitor

    root@ root $ iwconfig wlan0
    wlan0 IEEE 802.11g Mode:Monitor Channel:0 Tx-Power=0 dBm
    Retry min limit:7 RTS thrff Fragment thr=2352 B
    Encryption keyff
    Link Quality:0 Signal level:0 Noise level:0
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0

    root@ root $ cd /tmp
    root@ tmp $ ip link set wlan0 up

    Try with channel hopping -

    CH 1 ][ Elapsed: 2 mins ][ 2008-06-11 12:40

    BSSID PWR Beacons #Data, #/s CH MB ENC CIPHER AUTH ESSID



    root@ tmp $ iwconfig wlan0 channel 6
    root@ tmp $ tcpdump -s0 -i wlan0 -vv -A
    tcpdump: listening on wlan0, link-type IEEE802_11_RADIO (
    BSSID STATION PWR Rate Lost Packets Probes

    ^C

    Now try a specific channel. I know ch6 has traffic because the other
    station is seeing it.


    802.11 plus BSD radio information header), capture size 65535 bytes
    ^C
    0 packets captured
    0 packets received by filter
    0 packets dropped by kernel
    root@ tmp $

    Nothing. Not even an invalid/broken packet this time.


    --
    [** America, the police state **]
    Whoooose! What's that noise? Why, it's US citizen's
    rights, going down the toilet with Bush flushing.
    http://www.theregister.co.uk/2008/01..._nsa_internal/
    http://www.wired.com/politics/securi...007/08/wiretap
    http://www.hermes-press.com/police_state.htm
    http://www.privacyinternational.org/...D=x-347-559597


  2. Re: ath5k usage

    I've been using it with my laptop and a D-Link WNA-2330 PCMCIA
    wireless card. I'm running Fedora 8. Have not tested with the
    very latest kernel update for F8.

    You probably know a lot more about this than I do. All I know is
    ifconfig wlan0 UP and then iwlist wlan0 scan to see what is out
    there and then iwconfig wlan0 with what it takes to get connected,
    and then dhclient wlan0.

    On a Fedora 7 system with madwifi, if there is only one wireless
    access point the thing comes up automatically working at boot time.
    I have not had ath5k to work at boot time, so I took it out of
    things to be started during boot and always start it manually.

    What I learned on a recent trip: At a friend's house where there
    is only one access point I just bring it up with the essid argument
    to iwconfig and it all worked.

    At a motel where they sell you a card with a code for wireless access,
    I used the above to get it connected. Then nothing works until I start
    the web browser, and it brings up a page asking for the code from the
    card, and after that things work as they should.

    At a motel where the wireless was free but they gave me a "password" at
    the desk, the password turned out to be the encryption key. As I
    recall I had to use the format XXXX-XXXX-XXXX-XXXX to get it to work
    when doing iwconfig.

    At another motel where they sell a card, there were two access points
    with the same essid. So I had to use the ap argument to iwconfig
    to select the better one.

    Are you on the ath5k-users mailing list?



  3. Re: ath5k usage


    Whoa. A little slow getting back on this one, sorry.

    haynes@alumni.uark.edu (Jim Haynes) writes:

    > I've been using it with my laptop and a D-Link WNA-2330 PCMCIA
    > wireless card. I'm running Fedora 8. Have not tested with the
    > very latest kernel update for F8.


    I've played around with it a little since, now the kernel is at 2.6.26.5
    here and the code is probably more complete. I noticed some modes don't
    work, such as AP. When I set up wireless with Madwifi, I do one AP, one
    station. If monitoring, then it's obviously monitor mode, and ad-hoc
    isn't touched. Apparently ad-hoc is working, and monitor too, but not AP
    yet.

    > At a motel where they sell you a card with a code for wireless access,
    > I used the above to get it connected. Then nothing works until I start
    > the web browser, and it brings up a page asking for the code from the
    > card, and after that things work as they should.


    These I've heard of, but haven't seen. I wonder how they work? How can
    they tell me from another they already let in? The mac address? That is
    user-settable,

    > At a motel where the wireless was free but they gave me a "password" at
    > the desk, the password turned out to be the encryption key. As I
    > recall I had to use the format XXXX-XXXX-XXXX-XXXX to get it to work
    > when doing iwconfig.


    Probably a WEP key?

    https://atr2.ath.cx/~jayjwa/documents/WEP_Cracking.txt

    I can see one WEP network here, and usually all the rest are open, about
    3-4. I'm on the 5th floor, but the cards aren't close to the windows at
    all. I bet if I moved the box closer to the street on the other side of
    the room I'd see more.

    > At another motel where they sell a card, there were two access points
    > with the same essid. So I had to use the ap argument to iwconfig
    > to select the better one.
    >
    > Are you on the ath5k-users mailing list?


    No, I may check it out later though. Now I heard about an "ath9k".


    --
    Protect? [** America, The Police State **] Serve?
    Teen Tazered 19 times: http://www.ky3.com/news/local/26158674.html
    Guns For TX Teachers: http://news.bbc.co.uk/1/hi/world/americas/7564654.stm
    Castration Punishment: http://www.foxnews.com/story/0,2933,348171,00.html

+ Reply to Thread