Posts by TobsA13

    Hallo Leute,

    ich versuche momentan mit einem alten [font="sans-serif"]AWUS036H Wlan Adapter einer AP mit dem RPI hinzubekommen. Anscheinend haben das auch schon viele andere geschafft (hier z.B.: http://www.tacticalcode.de/2013/02/raspbe…lan-bridge.html ). Aber bei mir läuft das einfach nicht. Ich bekomme immer die Fehlermeldung:[/font]

    [font="sans-serif"]

    Code
    nl80211: Failed to set interface 3 to mode 3: -95 (Operation not supported)

    [/font]

    "Komplette Ausgabe Hostapd"

    pi@raspberrypi ~ $ sudo hostapd -dd /etc/hostapd/hostapd.conf
    random: Trying to read entropy from /dev/random
    Configuration file: /etc/hostapd/hostapd.conf
    ctrl_interface_group=0
    nl80211: interface wlan0 in phy phy0
    rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
    nl80211: Using driver-based off-channel TX
    nl80211: Add own interface ifindex 3
    nl80211: Set mode ifindex 3 iftype 3 (AP)
    nl80211: Failed to set interface 3 to mode 3: -95 (Operation not supported)
    nl80211: Interface already in requested mode - ignore error
    nl80211: Create interface iftype 6 (MONITOR)
    nl80211: New interface mon.wlan0 created: ifindex=4
    nl80211: Add own interface ifindex 4
    BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
    nl80211: Regulatory information - country=00
    nl80211: 2402-2472 @ 40 MHz
    nl80211: 2457-2482 @ 40 MHz
    nl80211: 2474-2494 @ 20 MHz
    nl80211: 5170-5250 @ 160 MHz
    nl80211: 5250-5330 @ 160 MHz
    nl80211: 5490-5730 @ 160 MHz
    nl80211: 5735-5835 @ 80 MHz
    nl80211: 57240-63720 @ 2160 MHz
    nl80211: Added 802.11b mode based on 802.11g information
    Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
    Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
    Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
    Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
    Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
    Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
    Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
    Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
    Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
    Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
    Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
    Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
    Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
    Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
    Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
    Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
    Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
    Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
    Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
    Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
    Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
    Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
    Completing interface initialization
    Mode: IEEE 802.11g Channel: 1 Frequency: 2412 MHz
    nl80211: Set freq 2412 (ht_enabled=1 sec_channel_offset=0)
    nl80211: Failed to set channel (freq=2412): -22 (Invalid argument)
    Could not set channel for kernel driver
    wlan0: Unable to setup interface.
    Flushing old station entries
    Could not connect to kernel driver.
    Deauthenticate all stations
    rmdir[ctrl_interface]: No such file or directory
    nl80211: Remove interface ifindex=4
    netlink: Operstate: linkmode=0, operstate=6
    nl80211: Set mode ifindex 3 iftype 2 (STATION)

    "hostapd.conf"

    # Schnittstelle und Treiber
    interface=wlan0
    driver=rtl8187

    # WLAN-Konfiguration
    ssid=RaspberryAPi
    channel=1

    # ESSID sichtbar
    ignore_broadcast_ssid=0

    # Ländereinstellungen
    country_code=DE
    ieee80211d=1

    # Übertragungsmodus
    hw_mode=g

    # Optionale Einstellungen
    # supported_rates=10 20 55 110 60 90 120 180 240 360 480 540

    # Draft-N Modus aktivieren / optional nur für entsprechende Karten
    ieee80211n=1

    # wmm-Funktionalität (fuer draft-n)
    wmm_enabled=1

    # Übertragungsmodus / Bandbreite 40MHz / siehe iw list
    # ht_capab=[HT40+][SHORT-GI-40][DSSS_CCK-40]

    # Beacons
    beacon_int=100
    dtim_period=2

    # MAC-Authentifizierung
    macaddr_acl=0

    # max. Anzahl der Clients
    max_num_sta=20

    # Größe der Datenpakete/Begrenzung
    rts_threshold=2347
    fragm_threshold=2346

    # hostapd Log Einstellungen
    logger_syslog=-1
    logger_syslog_level=2
    logger_stdout=-1
    logger_stdout_level=2

    # temporäre Konfigurationsdateien
    dump_file=/tmp/hostapd.dump
    ctrl_interface=/var/run/hostapd
    ctrl_interface_group=0

    # Authentifizierungsoptionen
    auth_algs=3

    # Verschlüsselung / hier rein WPA2
    wpa=2
    rsn_preauth=1
    rsn_preauth_interfaces=wlan0
    wpa_key_mgmt=WPA-PSK
    rsn_pairwise=CCMP

    # Schlüsselintervalle / Standardkonfiguration
    wpa_group_rekey=600
    wpa_ptk_rekey=600
    wpa_gmk_rekey=86400

    # Zugangsschlüssel (PSK) / hier in Klartext (ASCII)
    wpa_passphrase=SicheresWLAN

    Meiner Meinung verstehe ich das so als könnte mein Adapter kein AP sein. "iw list" bestätigt das auch:

    Code
    Supported interface modes:
                    * IBSS
                    * managed
                    * monitor
    "Komplette Ausgabe iw list"

    pi@raspberrypi ~ $ iw list
    Wiphy phy1
    Band 1:
    Frequencies:
    * 2412 MHz [1] (20.0 dBm)
    * 2417 MHz [2] (20.0 dBm)
    * 2422 MHz [3] (20.0 dBm)
    * 2427 MHz [4] (20.0 dBm)
    * 2432 MHz [5] (20.0 dBm)
    * 2437 MHz [6] (20.0 dBm)
    * 2442 MHz [7] (20.0 dBm)
    * 2447 MHz [8] (20.0 dBm)
    * 2452 MHz [9] (20.0 dBm)
    * 2457 MHz [10] (20.0 dBm)
    * 2462 MHz [11] (20.0 dBm)
    * 2467 MHz [12] (20.0 dBm)
    * 2472 MHz [13] (20.0 dBm)
    * 2484 MHz [14] (disabled)
    Bitrates (non-HT):
    * 1.0 Mbps
    * 2.0 Mbps
    * 5.5 Mbps
    * 11.0 Mbps
    * 6.0 Mbps
    * 9.0 Mbps
    * 12.0 Mbps
    * 18.0 Mbps
    * 24.0 Mbps
    * 36.0 Mbps
    * 48.0 Mbps
    * 54.0 Mbps
    max # scan SSIDs: 4
    max scan IEs length: 2285 bytes
    Coverage class: 0 (up to 0m)
    Supported Ciphers:
    * WEP40 (00-0f-ac:1)
    * WEP104 (00-0f-ac:5)
    * TKIP (00-0f-ac:2)
    * CCMP (00-0f-ac:4)
    Available Antennas: TX 0 RX 0
    Supported interface modes:
    * IBSS
    * managed
    * monitor
    software interface modes (can always be added):
    * monitor
    interface combinations are not supported
    Supported commands:
    * new_interface
    * set_interface
    * new_key
    * new_beacon
    * new_station
    * new_mpath
    * set_mesh_params
    * set_bss
    * authenticate
    * associate
    * deauthenticate
    * disassociate
    * join_ibss
    * join_mesh
    * set_tx_bitrate_mask
    * action
    * frame_wait_cancel
    * set_wiphy_netns
    * set_channel
    * set_wds_peer
    * Unknown command (84)
    * Unknown command (87)
    * Unknown command (85)
    * Unknown command (89)
    * Unknown command (92)
    * connect
    * disconnect
    Supported TX frame types:
    * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    * Unknown mode (10): 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    Supported RX frame types:
    * IBSS: 0x40 0xb0 0xc0 0xd0
    * managed: 0x40 0xd0
    * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
    * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
    * mesh point: 0xb0 0xc0 0xd0
    * P2P-client: 0x40 0xd0
    * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
    * Unknown mode (10): 0x40 0xd0
    Device supports RSN-IBSS.
    HT Capability overrides:
    * MCS: ff ff ff ff ff ff ff ff ff ff
    * maximum A-MSDU length
    * supported channel width
    * short GI for 40 MHz
    * max A-MPDU length exponent
    * min MPDU start spacing
    Device supports TX status socket option.
    Device supports HT-IBSS.

    Also kann es sein das es AWUS036H Adapter gibt die ein AP sein können und welche die es nicht können?
    Wenn nicht, was mach ich Falsch?

    Schon mal danke von mir.

    Viele Grüße

    Tobias