Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: RTL8187 (AWUS036H) + hostpad = not possible in Linux?

  1. #1
    Join Date
    Jan 2010
    Beans
    424

    RTL8187 (AWUS036H) + hostpad = not possible in Linux?

    I've been battling this issue literally all day long, and I know it's pretty embarrassing. I've been trying to get hostapd-wpe working for the last 7-8 hours and I've been constantly googling and trying various things, and it's mentally draining after all of this time.

    So as opposed to posting all of the millions of things that I've tried thus far, I'll just post the issue that I'm having. I'm using an AWUS036H Alfa USB Wireless card and trying to get it to host a WPA2 + Enterprise network. I can successfully host WEP/WPA/WPA2 using the Alfa LAN Utility software on Windows, but Linux acts like the device can't host APs at all. running hostapd-wpe gives me this issue:

    Code:
    alt@ubuntu:~/Desktop/hostapd-2.2/hostapd$ sudo ./hostapd-wpe -dd hostapd-wpe.conf 
    random: Trying to read entropy from /dev/random
    Configuration file: hostapd-wpe.conf
    ctrl_interface_group=0
    rfkill: initial event: idx=2 type=2 op=0 soft=0 hard=0
    rfkill: initial event: idx=3 type=1 op=0 soft=0 hard=0
    nl80211: Supported cipher 00-0f-ac:1
    nl80211: Supported cipher 00-0f-ac:5
    nl80211: Supported cipher 00-0f-ac:2
    nl80211: Supported cipher 00-0f-ac:4
    nl80211: Supported cipher 00-0f-ac:10
    nl80211: Supported cipher 00-0f-ac:8
    nl80211: Supported cipher 00-0f-ac:9
    nl80211: Using driver-based off-channel TX
    nl80211: interface wlx00c0ca823130 in phy phy1
    nl80211: Set mode ifindex 4 iftype 3 (AP)
    nl80211: Failed to set interface 4 to mode 3: -95 (Operation not supported)
    nl80211: Try mode change after setting interface down
    nl80211: Set mode ifindex 4 iftype 3 (AP)
    nl80211: Failed to set interface 4 to mode 3: -95 (Operation not supported)
    ^Cnl80211: Interface mode change to 3 from 0 failed
    nl80211: Could not configure driver mode
    nl80211: Remove monitor interface: refcount=0
    netlink: Operstate: ifindex=4 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
    nl80211: Set mode ifindex 4 iftype 2 (STATION)
    nl80211 driver initialization failed.
    hostapd_interface_deinit_free(0x11a3e10)
    hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
    hostapd_interface_deinit(0x11a3e10)
    hostapd_bss_deinit: deinit bss wlx00c0ca823130
    hostapd_cleanup(hapd=0x11a77c0 (wlx00c0ca823130))
    hostapd_free_hapd_data: Interface wlx00c0ca823130 wasn't started
    hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit
    hostapd_interface_free(0x11a3e10)
    hostapd_interface_free: free hapd 0x11a77c0
    hostapd_cleanup_iface(0x11a3e10)
    hostapd_cleanup_iface_partial(0x11a3e10)
    hostapd_cleanup_iface: free iface=0x11a3e10
    I'm so out of ideas right now it's ridiculous. I've tried rfkill, unblocking the wireless card, tried installing compat-wireless (not sure if this installed correctly, but my wireless card didn't show up after rebooting), rebooting a few times, and even tried downloading the RTL8187 drivers from Realtek's website -- this didn't compile correctly and not sure what that issue was all about.

    I thought I had this working a few months ago, and now all of a sudden I can't get it to work for the life of me.

    Any help would be seriously appreciated here. I really need to get this working before tomorrow and it's extremely frustrating dealing with all these annoying driver issues.

  2. #2
    Join Date
    Oct 2006
    Beans
    57,617

    Re: RTL8187 (AWUS036H) + hostpad = not possible in Linux?

    Thread moved to the "Networking & Wireless" forum, probably a better fit for your query.

  3. #3
    Join Date
    Jan 2010
    Beans
    424

    Re: RTL8187 (AWUS036H) + hostpad = not possible in Linux?

    Thanks howefield.

  4. #4
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,643
    Distro
    Ubuntu Development Release

    Re: RTL8187 (AWUS036H) + hostpad = not possible in Linux?

    nl80211: Set mode ifindex 4 iftype 3 (AP)
    nl80211: Failed to set interface 4 to mode 3: -95 (Operation not supported)
    Not all hardware and driver combinations do all modes. You can check with:
    Code:
    iw list
    My Intel card says:
    Supported interface modes:
    * IBSS
    * managed
    * monitor
    No AP mode there. I also have an Atheros USB that reports:
    Supported interface modes:
    * IBSS
    * managed
    * AP
    * AP/VLAN

    * monitor
    * mesh point
    * P2P-client
    * P2P-GO
    What does yours report?
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  5. #5
    Join Date
    Jan 2010
    Beans
    424

    Re: RTL8187 (AWUS036H) + hostpad = not possible in Linux?

    Quote Originally Posted by chili555 View Post
    Not all hardware and driver combinations do all modes. You can check with:
    Code:
    iw list
    My Intel card says:No AP mode there. I also have an Atheros USB that reports: What does yours report?
    Mine only reports back IBSS, Managed, and Monitor. Is there any reason why it wouldn't support AP in Linux when it clearly works in Windows? I mean it just sounds like a driver issue doesn't it? Any way I can get around that?

  6. #6
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,643
    Distro
    Ubuntu Development Release

    Re: RTL8187 (AWUS036H) + hostpad = not possible in Linux?

    Is there any reason why it wouldn't support AP in Linux when it clearly works in Windows?
    Because Linux is not Windows and vice versa. A great many things work well in one but not the other.

    You might try the latest backports driver. The process is here. Download this package to your desktop: https://www.kernel.org/pub/linux/ker...0151115.tar.gz Right-click it and select 'Extract Here.' Now, back to the terminal:

    Code:
    sudo apt-get install linux-headers-generic build-essential
    cd ~/Desktop/backports-20151115
    make defconfig-rtlwifi
    make
    sudo make install
    Reboot.

    Also, you have compiled the driver for your currently running kernel only. When Update Manager installs a newer linux-image, after the requested reboot, recompile:

    Code:
    cd ~/Desktop/backports-20151115
    make clean
    make defconfig-rtlwifi
    make
    sudo make install
    Please retain the file and these instructions for that time.

    Whether this newer driver supports AP mode with your hardware is unknown to me; I haven't the device.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  7. #7
    Join Date
    Jan 2010
    Beans
    424

    Re: RTL8187 (AWUS036H) + hostpad = not possible in Linux?

    Quote Originally Posted by chili555 View Post
    Because Linux is not Windows and vice versa. A great many things work well in one but not the other.

    You might try the latest backports driver. The process is here. Download this package to your desktop: https://www.kernel.org/pub/linux/ker...0151115.tar.gz Right-click it and select 'Extract Here.' Now, back to the terminal:

    Code:
    sudo apt-get install linux-headers-generic build-essential
    cd ~/Desktop/backports-20151115
    make defconfig-rtlwifi
    make
    sudo make install
    Reboot.

    Also, you have compiled the driver for your currently running kernel only. When Update Manager installs a newer linux-image, after the requested reboot, recompile:

    Code:
    cd ~/Desktop/backports-20151115
    make clean
    make defconfig-rtlwifi
    make
    sudo make install
    Please retain the file and these instructions for that time.

    Whether this newer driver supports AP mode with your hardware is unknown to me; I haven't the device.
    Thanks for your help thus far. I tried this yesterday and just tried it again just now just to be on the safe side, and it seems like the card shows up in lsusb, but I can't do an "ifconfig wlan0 up" because it doesn't detect it.

    Hmm, any other suggestions here? Thanks again.

  8. #8
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,643
    Distro
    Ubuntu Development Release

    Re: RTL8187 (AWUS036H) + hostpad = not possible in Linux?

    Please confirm that you rebooted.

    May I see:
    Code:
    lsusb
    modinfo rtl8187 | grep -i version
    sudo modprobe rtl8187
    dmesg | grep rtl
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  9. #9
    Join Date
    Jan 2010
    Beans
    424

    Re: RTL8187 (AWUS036H) + hostpad = not possible in Linux?

    Quote Originally Posted by chili555 View Post
    Please confirm that you rebooted.

    May I see:
    Code:
    lsusb
    modinfo rtl8187 | grep -i version
    sudo modprobe rtl8187
    dmesg | grep rtl
    Yep -- I've rebooted. Here is the output of those commands.

    Code:
    #lsusb
    Bus 002 Device 002: ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 004: ID 0e0f:0008 VMware, Inc. 
    Bus 001 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
    Bus 001 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
    Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Code:
    # modinfo rtl8187 | grep -i version
    vermagic:       4.0.0-kali1-amd64 SMP mod_unload modversions
    Code:
    # modprobe rtl8187
    modprobe: ERROR: could not insert 'rtl8187': Invalid argument
    Code:
    # dmesg | grep rtl
    [   71.553894] rtl8187: disagrees about version of symbol ieee80211_queue_stopped
    [   71.553896] rtl8187: Unknown symbol ieee80211_queue_stopped (err -22)
    [   71.553922] rtl8187: disagrees about version of symbol ieee80211_free_hw
    [   71.553923] rtl8187: Unknown symbol ieee80211_free_hw (err -22)
    [   71.553929] rtl8187: disagrees about version of symbol ieee80211_register_hw
    [   71.553930] rtl8187: Unknown symbol ieee80211_register_hw (err -22)
    [   71.553932] rtl8187: disagrees about version of symbol ieee80211_ctstoself_duration
    [   71.553933] rtl8187: Unknown symbol ieee80211_ctstoself_duration (err -22)
    [   71.553941] rtl8187: Unknown symbol __ieee80211_get_radio_led_name (err 0)
    [   71.553942] rtl8187: disagrees about version of symbol ieee80211_generic_frame_duration
    [   71.553943] rtl8187: Unknown symbol ieee80211_generic_frame_duration (err -22)
    [   71.553951] rtl8187: Unknown symbol __ieee80211_get_tx_led_name (err 0)
    [   71.553953] rtl8187: disagrees about version of symbol ieee80211_tx_status_irqsafe
    [   71.553953] rtl8187: Unknown symbol ieee80211_tx_status_irqsafe (err -22)
    [   71.553964] rtl8187: disagrees about version of symbol wiphy_rfkill_set_hw_state
    [   71.553964] rtl8187: Unknown symbol wiphy_rfkill_set_hw_state (err -22)
    [   71.553979] rtl8187: Unknown symbol __ieee80211_get_rx_led_name (err 0)
    [   71.553986] rtl8187: disagrees about version of symbol ieee80211_queue_delayed_work
    [   71.553986] rtl8187: Unknown symbol ieee80211_queue_delayed_work (err -22)
    [   71.553987] rtl8187: disagrees about version of symbol wiphy_rfkill_stop_polling
    [   71.553988] rtl8187: Unknown symbol wiphy_rfkill_stop_polling (err -22)
    [   71.553998] rtl8187: disagrees about version of symbol ieee80211_alloc_hw_nm
    [   71.553999] rtl8187: Unknown symbol ieee80211_alloc_hw_nm (err -22)
    [   71.554011] rtl8187: disagrees about version of symbol wiphy_rfkill_start_polling
    [   71.554012] rtl8187: Unknown symbol wiphy_rfkill_start_polling (err -22)
    [   71.554015] rtl8187: disagrees about version of symbol ieee80211_unregister_hw
    [   71.554015] rtl8187: Unknown symbol ieee80211_unregister_hw (err -22)
    [   71.554016] rtl8187: disagrees about version of symbol ieee80211_beacon_get_tim
    [   71.554017] rtl8187: Unknown symbol ieee80211_beacon_get_tim (err -22)
    [   71.554021] rtl8187: disagrees about version of symbol ieee80211_rx_irqsafe
    [   71.554021] rtl8187: Unknown symbol ieee80211_rx_irqsafe (err -22)
    [   71.554023] rtl8187: disagrees about version of symbol ieee80211_rts_duration
    [   71.554024] rtl8187: Unknown symbol ieee80211_rts_duration (err -22)
    [  380.637215] rtl8187: disagrees about version of symbol ieee80211_queue_stopped
    [  380.637219] rtl8187: Unknown symbol ieee80211_queue_stopped (err -22)
    [  380.637268] rtl8187: disagrees about version of symbol ieee80211_free_hw
    [  380.637270] rtl8187: Unknown symbol ieee80211_free_hw (err -22)
    [  380.637283] rtl8187: disagrees about version of symbol ieee80211_register_hw
    [  380.637285] rtl8187: Unknown symbol ieee80211_register_hw (err -22)
    [  380.637289] rtl8187: disagrees about version of symbol ieee80211_ctstoself_duration
    [  380.637291] rtl8187: Unknown symbol ieee80211_ctstoself_duration (err -22)
    [  380.637308] rtl8187: Unknown symbol __ieee80211_get_radio_led_name (err 0)
    [  380.637310] rtl8187: disagrees about version of symbol ieee80211_generic_frame_duration
    [  380.637310] rtl8187: Unknown symbol ieee80211_generic_frame_duration (err -22)
    [  380.637323] rtl8187: Unknown symbol __ieee80211_get_tx_led_name (err 0)
    [  380.637326] rtl8187: disagrees about version of symbol ieee80211_tx_status_irqsafe
    [  380.637326] rtl8187: Unknown symbol ieee80211_tx_status_irqsafe (err -22)
    [  380.637342] rtl8187: disagrees about version of symbol wiphy_rfkill_set_hw_state
    [  380.637342] rtl8187: Unknown symbol wiphy_rfkill_set_hw_state (err -22)
    [  380.637363] rtl8187: Unknown symbol __ieee80211_get_rx_led_name (err 0)
    [  380.637372] rtl8187: disagrees about version of symbol ieee80211_queue_delayed_work
    [  380.637373] rtl8187: Unknown symbol ieee80211_queue_delayed_work (err -22)
    [  380.637375] rtl8187: disagrees about version of symbol wiphy_rfkill_stop_polling
    [  380.637376] rtl8187: Unknown symbol wiphy_rfkill_stop_polling (err -22)
    [  380.637391] rtl8187: disagrees about version of symbol ieee80211_alloc_hw_nm
    [  380.637392] rtl8187: Unknown symbol ieee80211_alloc_hw_nm (err -22)
    [  380.637410] rtl8187: disagrees about version of symbol wiphy_rfkill_start_polling
    [  380.637411] rtl8187: Unknown symbol wiphy_rfkill_start_polling (err -22)
    [  380.637415] rtl8187: disagrees about version of symbol ieee80211_unregister_hw
    [  380.637416] rtl8187: Unknown symbol ieee80211_unregister_hw (err -22)
    [  380.637417] rtl8187: disagrees about version of symbol ieee80211_beacon_get_tim
    [  380.637418] rtl8187: Unknown symbol ieee80211_beacon_get_tim (err -22)
    [  380.637425] rtl8187: disagrees about version of symbol ieee80211_rx_irqsafe
    [  380.637425] rtl8187: Unknown symbol ieee80211_rx_irqsafe (err -22)
    [  380.637429] rtl8187: disagrees about version of symbol ieee80211_rts_duration
    [  380.637429] rtl8187: Unknown symbol ieee80211_rts_duration (err -22)
    [  392.482777] rtl8187: disagrees about version of symbol ieee80211_queue_stopped
    [  392.482781] rtl8187: Unknown symbol ieee80211_queue_stopped (err -22)
    [  392.482831] rtl8187: disagrees about version of symbol ieee80211_free_hw
    [  392.482832] rtl8187: Unknown symbol ieee80211_free_hw (err -22)
    [  392.482841] rtl8187: disagrees about version of symbol ieee80211_register_hw
    [  392.482842] rtl8187: Unknown symbol ieee80211_register_hw (err -22)
    [  392.482846] rtl8187: disagrees about version of symbol ieee80211_ctstoself_duration
    [  392.482846] rtl8187: Unknown symbol ieee80211_ctstoself_duration (err -22)
    [  392.482864] rtl8187: Unknown symbol __ieee80211_get_radio_led_name (err 0)
    [  392.482865] rtl8187: disagrees about version of symbol ieee80211_generic_frame_duration
    [  392.482866] rtl8187: Unknown symbol ieee80211_generic_frame_duration (err -22)
    [  392.482878] rtl8187: Unknown symbol __ieee80211_get_tx_led_name (err 0)
    [  392.482882] rtl8187: disagrees about version of symbol ieee80211_tx_status_irqsafe
    [  392.482882] rtl8187: Unknown symbol ieee80211_tx_status_irqsafe (err -22)
    [  392.482897] rtl8187: disagrees about version of symbol wiphy_rfkill_set_hw_state
    [  392.482898] rtl8187: Unknown symbol wiphy_rfkill_set_hw_state (err -22)
    [  392.482918] rtl8187: Unknown symbol __ieee80211_get_rx_led_name (err 0)
    [  392.482927] rtl8187: disagrees about version of symbol ieee80211_queue_delayed_work
    [  392.482928] rtl8187: Unknown symbol ieee80211_queue_delayed_work (err -22)
    [  392.482930] rtl8187: disagrees about version of symbol wiphy_rfkill_stop_polling
    [  392.482931] rtl8187: Unknown symbol wiphy_rfkill_stop_polling (err -22)
    [  392.482946] rtl8187: disagrees about version of symbol ieee80211_alloc_hw_nm
    [  392.482947] rtl8187: Unknown symbol ieee80211_alloc_hw_nm (err -22)
    [  392.482966] rtl8187: disagrees about version of symbol wiphy_rfkill_start_polling
    [  392.482967] rtl8187: Unknown symbol wiphy_rfkill_start_polling (err -22)
    [  392.482971] rtl8187: disagrees about version of symbol ieee80211_unregister_hw
    [  392.482972] rtl8187: Unknown symbol ieee80211_unregister_hw (err -22)
    [  392.482973] rtl8187: disagrees about version of symbol ieee80211_beacon_get_tim
    [  392.482974] rtl8187: Unknown symbol ieee80211_beacon_get_tim (err -22)
    [  392.482980] rtl8187: disagrees about version of symbol ieee80211_rx_irqsafe
    [  392.482981] rtl8187: Unknown symbol ieee80211_rx_irqsafe (err -22)
    [  392.482984] rtl8187: disagrees about version of symbol ieee80211_rts_duration
    [  392.482985] rtl8187: Unknown symbol ieee80211_rts_duration (err -22)
    Last edited by altjx; November 19th, 2015 at 03:51 AM.

  10. #10
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,643
    Distro
    Ubuntu Development Release

    Re: RTL8187 (AWUS036H) + hostpad = not possible in Linux?

    vermagic: 4.0.0-kali1-amd64 SMP mod_unload modversions
    Oooops!!

    Let's try again with, instead:
    Code:
    cd ~/Desktop/backports-20151115
    make clean
    make defconfig-wifi
    make
    sudo make install
    It takes a while, so please be patient.

    Reboot.

    These instructions are for Ubuntu; we know nothing about Kali.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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