Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29

Thread: RTL8187 / managed mode

  1. #11
    Junior Member
    Join Date
    Feb 2010
    Posts
    27

    Default

    There's a driver for the 8187b on the aircrack-ng website. Just get that (and the appropriate patch?) from there. Is the 8187b as bad as the 8187 with the mac80211 driver under 2.6.27(+)?

  2. #12
    Junior Member
    Join Date
    Dec 2008
    Posts
    43

    Default

    yes. has exactly the same problems... i have that driver for the 8187b and i receve the same error when ./wlan0up because in the ieee80211 directory there is no .ko files only .c....

    by the way how do i patch mac80211 with this patch?? to see if it works

    http://patches.aircrack-ng.org/rtl81...6.28-rc6.patch

  3. #13
    Junior Member
    Join Date
    Dec 2008
    Posts
    43

    Default

    No one know what is the difference between .ko files and .c ?
    Why do i have .c and need .ko ?

    thanks

  4. #14
    Just burned his ISO
    Join Date
    Jul 2007
    Posts
    17

    Default

    hi guys,

    i got problem with my alfa awus036h. injection and monitormode works fine, but when i try to connect to my router the connection breaks down after a few seconds.

    pinging the router is in the first seconds possible, but than, the connection breaks down and host is unreachable. ifconfig and iwconfig says that im connected and everything is fine.

    can someone help me?

  5. #15
    Member
    Join Date
    Jan 2010
    Posts
    332

    Default

    Had a similar problem. Solved when i set the bssid of specific router to connect to.
    iwconfig wlan0 ap bssid
    Maby that will help (although I doubt that - i have 2 routers on one network so needed to solve the issue).
    SecurityTube has two new sections. Questions & News

  6. #16
    Just burned his ISO
    Join Date
    Jul 2007
    Posts
    17

    Default

    ap flag is set correctly. maybe the drivers are buggy? or a process in the background kills the connection?!?

    here is an example:


    root@bt:~# ping 192.168.178.1
    PING 192.168.178.1 (192.168.178.1) 56(84) bytes of data.
    64 bytes from 192.168.178.1: icmp_seq=1 ttl=255 time=13.0 ms
    64 bytes from 192.168.178.1: icmp_seq=2 ttl=255 time=5.76 ms
    64 bytes from 192.168.178.1: icmp_seq=3 ttl=255 time=4.65 ms
    64 bytes from 192.168.178.1: icmp_seq=4 ttl=255 time=6.29 ms
    64 bytes from 192.168.178.1: icmp_seq=5 ttl=255 time=5.55 ms
    64 bytes from 192.168.178.1: icmp_seq=6 ttl=255 time=6.44 ms
    64 bytes from 192.168.178.1: icmp_seq=7 ttl=255 time=8.07 ms
    64 bytes from 192.168.178.1: icmp_seq=8 ttl=255 time=18.4 ms
    64 bytes from 192.168.178.1: icmp_seq=9 ttl=255 time=16.4 ms
    64 bytes from 192.168.178.1: icmp_seq=10 ttl=255 time=46.7 ms
    ^C
    --- 192.168.178.1 ping statistics ---
    13 packets transmitted, 10 received, 23% packet loss, time 12057ms
    rtt min/avg/max/mdev = 4.654/13.148/46.738/12.122 ms
    at this point, the host is no longer reachable....

    wlan0

    IEEE 802.11bg ESSID:"myessid"
    Mode:Managed Frequency:2.437 GHz Access Point: xxxxxxxx
    Bit Rate=54 Mb/s Tx-Power=27 dBm
    Retry min limit:7 RTS thrff Fragment thr=2352 B
    Encryption key:xxxxxxx Security modepen
    Power Managementff
    Link Quality=10/100 Signal level:-66 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0

    wlan0

    Link encap:Ethernet HWaddr 00:11:22:33:44:55
    inet addr:192.168.178.22 Bcast:192.168.178.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:22 errors:0 dropped:0 overruns:0 frame:0
    TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1932 (1.9 KB) TX bytes:4996 (4.9 KB)

  7. #17
    Just burned his ISO
    Join Date
    Jul 2007
    Posts
    17

    Default

    ok the problem is the range.... when i get closer to the ap it works, but its stressing me, i use 500mw alfa with yagi antenna and the ap is behind one wall in 20 meters distance. so i think the driver is not working correctly.

    i get the same problems with *.ko files. timstewart can you describe more details about installing the old driver, most interesting the make, make install step.

    thanks

  8. #18
    Junior Member
    Join Date
    Feb 2010
    Posts
    27

    Default

    PeterPanzki

    Your problem is exactly what I had using the stock Ubuntu 8.10 drivers. This is what set me on the course of changing back to the old ones.

    I can't explain the installation any further. My instructions are exactly what you need to type in to get it working. Make sure you are logged in as root for 'make install' though. (And don't forget to edit r8187.h).

  9. #19
    Just burned his ISO
    Join Date
    Jul 2007
    Posts
    17

    Default

    here is what i do:

    Code:
    root@bt:~# ifconfig wlan0 down
    root@bt:~# vi /etc/modprobe.d/blacklist
    root@bt:~# rmmod r8187 rtl8187 2>/dev/null
    root@bt:~# unzip rtl8187_linux_26.1010.zip
    no errors on unzipping the file
    root@bt:~# cd rtl8187_linux_26.1010.0622.2006/
    root@bt:~/rtl8187_linux_26.1010.0622.2006# tar xzf drv.tar.gz
    root@bt:~/rtl8187_linux_26.1010.0622.2006# tar xzf stack.tar.gz
    root@bt:~/rtl8187_linux_26.1010.0622.2006# vi beta-8187/r8187.h
    now i change:
    Code:
    #include <asm/io.h>
    #include <asm/semaphore.h>
    to:

    Code:
    #include <linux/io.h>
    #include <linux/semaphore.h>
    Code:
    root@bt:~/rtl8187_linux_26.1010.0622.2006# patch -Np1 -i rtl8187_2.6.27.patch
    (Stripping trailing CRs from patch.)
    patching file beta-8187/ieee80211_crypt.h
    (Stripping trailing CRs from patch.)
    patching file beta-8187/ieee80211.h
    (Stripping trailing CRs from patch.)
    patching file beta-8187/Makefile
    (Stripping trailing CRs from patch.)
    patching file beta-8187/r8180_93cx6.c
    (Stripping trailing CRs from patch.)
    patching file beta-8187/r8180_hw.h
    (Stripping trailing CRs from patch.)
    patching file beta-8187/r8180_rtl8225.c
    (Stripping trailing CRs from patch.)
    patching file beta-8187/r8180_rtl8225.h
    (Stripping trailing CRs from patch.)
    patching file beta-8187/r8180_rtl8225z2.c
    (Stripping trailing CRs from patch.)
    patching file beta-8187/r8180_wx.c
    (Stripping trailing CRs from patch.)
    patching file beta-8187/r8187_core.c
    Hunk #1 FAILED at 1.
    Hunk #2 FAILED at 57.
    Hunk #3 FAILED at 67.
    Hunk #4 FAILED at 102.
    Hunk #5 FAILED at 145.
    Hunk #6 FAILED at 166.
    Hunk #7 FAILED at 180.
    Hunk #8 FAILED at 192.
    Hunk #9 FAILED at 204.
    /////// ALOT OF HUNKS FAILED HERE (96)
    96 out of 96 hunks FAILED -- saving rejects to file beta-8187/r8187_core.c.rej
    (Stripping trailing CRs from patch.)
    patching file beta-8187/r8187_core.c~
    Reversed (or previously applied) patch detected!  Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file beta-8187/r8187_core.c~.rej
    (Stripping trailing CRs from patch.)
    patching file beta-8187/r8187.h
    Hunk #1 FAILED at 1.
    Hunk #2 FAILED at 26.
    Hunk #3 FAILED at 46.
    Hunk #4 FAILED at 73.
    Hunk #5 FAILED at 128.
    Hunk #6 FAILED at 148.
    Hunk #7 FAILED at 168.
    Hunk #8 FAILED at 181.
    Hunk #9 FAILED at 235.
    Hunk #10 FAILED at 249.
    10 out of 10 hunks FAILED -- saving rejects to file beta-8187/r8187.h.rej
    (Stripping trailing CRs from patch.)
    patching file beta-8187/r8187.h~
    Reversed (or previously applied) patch detected!  Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file beta-8187/r8187.h~.rej
    (Stripping trailing CRs from patch.)
    patching file beta-8187/.tmp_versions/r8187.mod
    (Stripping trailing CRs from patch.)
    patching file ieee80211/ieee80211_crypt.c
    (Stripping trailing CRs from patch.)
    patching file ieee80211/ieee80211_crypt_ccmp.c
    (Stripping trailing CRs from patch.)
    patching file ieee80211/ieee80211_crypt.h
    (Stripping trailing CRs from patch.)
    patching file ieee80211/ieee80211_crypt_tkip.c
    (Stripping trailing CRs from patch.)
    patching file ieee80211/ieee80211_crypt_wep.c
    (Stripping trailing CRs from patch.)
    patching file ieee80211/ieee80211.h
    (Stripping trailing CRs from patch.)
    patching file ieee80211/ieee80211_module.c
    (Stripping trailing CRs from patch.)
    patching file ieee80211/ieee80211_rx.c
    (Stripping trailing CRs from patch.)
    patching file ieee80211/ieee80211_softmac.c
    (Stripping trailing CRs from patch.)
    patching file ieee80211/ieee80211_softmac_wx.c
    (Stripping trailing CRs from patch.)
    patching file ieee80211/ieee80211_tx.c
    (Stripping trailing CRs from patch.)
    patching file ieee80211/ieee80211_wx.c
    (Stripping trailing CRs from patch.)
    patching file ieee80211/Makefile
    (Stripping trailing CRs from patch.)
    patching file ieee80211/Modules.symvers
    (Stripping trailing CRs from patch.)
    patching file ieee80211/.tmp_versions/ieee80211_crypt_ccmp-rtl.mod
    (Stripping trailing CRs from patch.)
    patching file ieee80211/.tmp_versions/ieee80211_crypt-rtl.mod
    (Stripping trailing CRs from patch.)
    patching file ieee80211/.tmp_versions/ieee80211_crypt_tkip-rtl.mod
    (Stripping trailing CRs from patch.)
    patching file ieee80211/.tmp_versions/ieee80211_crypt_wep-rtl.mod
    (Stripping trailing CRs from patch.)
    patching file ieee80211/.tmp_versions/ieee80211-rtl.mod
    (Stripping trailing CRs from patch.)
    patching file makedrv~
    (Stripping trailing CRs from patch.)
    patching file Makefile
    (Stripping trailing CRs from patch.)
    patching file ReadMe.txt~
    Reversed (or previously applied) patch detected!  Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file ReadMe.txt~.rej
    (Stripping trailing CRs from patch.)
    patching file symvers
    (Stripping trailing CRs from patch.)
    patching file wlan0rmv

  10. #20
    Just burned his ISO
    Join Date
    Jul 2007
    Posts
    17

    Default

    and the make step:

    Code:
    root@bt:~/rtl8187_linux_26.1010.0622.2006# make
    rm -f ieee80211/Module.symvers 2>/dev/null
    rm -f ieee80211/Modules.symvers 2>/dev/null
    make -C ieee80211 all
    make[1]: Entering directory `/root/rtl8187_linux_26.1010.0622.2006/ieee80211'
    make -C /lib/modules/2.6.28.1/build M=/root/rtl8187_linux_26.1010.0622.2006/ieee80211 modules
    make[2]: Entering directory `/usr/src/linux-source-2.6.28.1'
      CC [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_softmac.o
      CC [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_rx.o
      CC [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_tx.o
      CC [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_wx.o
      CC [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_module.o
      CC [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_softmac_wx.o
      CC [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt.o
      CC [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt_ccmp.o
      CC [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt_tkip.o
      CC [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt_wep.o
      LD [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211-rtl.o
      LD [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt-rtl.o
      LD [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt_wep-rtl.o
      LD [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt_tkip-rtl.o
      LD [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt_ccmp-rtl.o
      Building modules, stage 2.
      MODPOST 5 modules
      CC      /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211-rtl.mod.o
      LD [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211-rtl.ko
      CC      /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt-rtl.mod.o
      LD [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt-rtl.ko
      CC      /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt_ccmp-rtl.mod.o
      LD [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt_ccmp-rtl.ko
      CC      /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt_tkip-rtl.mod.o
      LD [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt_tkip-rtl.ko
      CC      /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt_wep-rtl.mod.o
      LD [M]  /root/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt_wep-rtl.ko
    make[2]: Leaving directory `/usr/src/linux-source-2.6.28.1'
    make[1]: Leaving directory `/root/rtl8187_linux_26.1010.0622.2006/ieee80211'
    chmod +x symvers
    ./symvers
    make -C beta-8187 all
    make[1]: Entering directory `/root/rtl8187_linux_26.1010.0622.2006/beta-8187'
    make -C /lib/modules/2.6.28.1/build M=/root/rtl8187_linux_26.1010.0622.2006/beta-8187 modules
    make[2]: Entering directory `/usr/src/linux-source-2.6.28.1'
      CC [M]  /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.o
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘write_nic_byte_E’:
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:165: error: implicit declaration of function ‘ieee80211_priv’
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘r8180_get_wireless_stats’:
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:413: warning: initialization makes pointer from integer without a cast
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘rtl8180_proc_module_init’:
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:421: error: ‘proc_net’ undeclared (first use in this function)
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:421: error: (Each undeclared identifier is reported only once
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:421: error: for each function it appears in.)
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘rtl8180_proc_module_remove’:
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:427: error: ‘proc_net’ undeclared (first use in this function)
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘check_nic_enought_desc’:
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:542: warning: initialization makes pointer from integer without a cast
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘tx_timeout’:
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:552: warning: initialization makes pointer from integer without a cast
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘rtl8180_update_msr’:
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:628: warning: initialization makes pointer from integer without a cast
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘rtl8187_rx_urbsubmit’:
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:700: warning: passing argument 6 of ‘usb_fill_bulk_urb’ from incompatible pointer type
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘rtl8180_rtx_disable’:
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:917: warning: initialization makes pointer from integer without a cast
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘rtl8187_rx_isr’:
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:1054: warning: initialization makes pointer from integer without a cast
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘rtl8180_hard_data_xmit’:
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:1129: error: implicit declaration of function ‘ieee80211_stop_queue’
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘rtl8187_lptx_isr’:
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:1231: warning: initialization makes pointer from integer without a cast
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘rtl8187_net_update’:
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:1262: warning: initialization makes pointer from integer without a cast
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘rtl8187_beacon_tx’:
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:1286: warning: initialization makes pointer from integer without a cast
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:1292: error: implicit declaration of function ‘ieee80211_get_beacon’
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:1292: warning: assignment makes pointer from integer without a cast
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘rtl8187_nptx_isr’:
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:1330: warning: initialization makes pointer from integer without a cast
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘rtl8180_tx’:
    
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c: In function ‘rtl8180_try_wake_queue’:
    /root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c:2518: error: implicit declaration of function ‘ieee80211_wake_queue’
    make[3]: *** [/root/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.o] Error 1
    make[2]: *** [_module_/root/rtl8187_linux_26.1010.0622.2006/beta-8187] Error 2
    make[2]: Leaving directory `/usr/src/linux-source-2.6.28.1'
    make[1]: *** [modules] Error 2
    make[1]: Leaving directory `/root/rtl8187_linux_26.1010.0622.2006/beta-8187'
    make: *** [all] Error 2
    
    root@bt:~/rtl8187_linux_26.1010.0622.2006# make install
    install -d /lib/modules/2.6.28.1/kernel/drivers/net/wireless/rtl_ieee80211
    install -d /lib/modules/2.6.28.1/kernel/drivers/net/wireless/rtl8187
    install -m 644 ./ieee80211/*.ko /lib/modules/2.6.28.1/kernel/drivers/net/wireless/rtl_ieee80211
    install -m 644 ./beta-8187/*.ko /lib/modules/2.6.28.1/kernel/drivers/net/wireless/rtl8187
    install: cannot stat `./beta-8187/*.ko': No such file or directory
    make: *** [install] Error 1
    there are alot of more errors in core.c but i cut it out cause if the post lenght limit...

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •