Hallo zusammen,
ich bin im Moment dabei, einen WLAN-Access-Point mit Hilfe von hostapd aufzusetzen.
Dieser funktioniert soweit ganz gut. Leider habe ich dabei eine maximale Übertragungsrate von 54 Mbit/sek.
Mir wäre mehr aber lieber... ![]()
Deswegen wollte ich hier fragen, ob vielleicht jemand die Lösung für mein Problem kennt.
Das System besteht aus einem modifizierter Linux-Kernel. Bei dem WLAN-Modul handelt es sich aum eine SparkLAN-127N auf Basis eines Atheros AR9380 Chipsatzes.
Meine hostapd.conf:
#Basiskonfiguration
interface=wlan0
driver=nl80211
ssid=xxx
channel=7
hw_mode=g
#N-Draft aktivieren:
ieee80211n=1
ht_capab=[HT40-][SHORT-GI-40][DSSS_CCK-40]
wmm_enabled=1
#Verschlüsselung:
wpa=2
wpa_passphrase=xxx
wpa_pairwise=CCMP TKIP
Alles anzeigen
Wenn ich hostapd starte kommt dann folgendes:
nl80211: Add own interface ifindex 2
nl80211: New interface mon.wlan0 created: ifindex=9
nl80211: Add own interface ifindex 9
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Added 802.11b mode based on 802.11g information
Scan for neighboring BSSes prior to enabling 40 MHz channel
Scan requested (ret=0) - scan timeout 10 seconds
Interface initialization will be completed in a callback
nl80211: Event message available
nl80211: Scan trigger
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
mgmt::proberesp cb
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
nl80211: Event message available
nl80211: New scan results available
Received scan results (3 BSSes)
40 MHz affected channel range: [2407,2457] MHz
Neighboring BSS: 00:1b:2f:09:e0:12 freq=2412 pri=0 sec=0
Neighboring BSS: 00:18:4d:38:ae:ed freq=2437 pri=0 sec=0
Completing interface initialization
Mode: IEEE 802.11g Channel: 7 Frequency: 2442 MHz
Flushing old station entries
Deauthenticate all stations
wpa_driver_nl80211_set_key: ifindex=2 alg=0 addr=(nil) key_idx=0 set_tx=1 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=2 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=2 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=2 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0 with hwaddr 00:0e:8e:31:5c:58 and ssid 'xxx'
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=7):
62 70 6e 67 2d 41 50 xxxx
PSK (ASCII passphrase) - hexdump_ascii(len=9): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GMK - hexdump(len=32): [REMOVED]
GTK - hexdump(len=32): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
wpa_driver_nl80211_set_key: ifindex=2 alg=2 addr=(nil) key_idx=1 set_tx=1 seq_len=0 key_len=32
nl80211: Set beacon (beacon_set=0)
wlan0: Setup of interface done.
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
^X^CSignal 2 received - terminating
Flushing old station entries
Deauthenticate all stations
nl80211: Remove interface ifindex=9
^Xnetlink: Operstate: linkmode=0, operstate=6
Alles anzeigen
Bisher habe ich hostapd bereits neu kompiliert, um den n-Standard überhaupt in der Config-Datei aktivieren zu können. Nun kann ich die Option wenigstens aktiveren, ohne dass ein Fehler kommt. Allerdigns bekomme ich trotzdem nur eine Übertragungsrate von 54 Mbit/sek.
Kann das an den Ländereinstellungen liegen?
iw list gibt folgendes aus:
Wiphy phy0
Band 1:
HT capabilities: 0x11ef
* LPDC coding
* 20/40 MHz operation
* SM PS disabled
* 20 MHz short GI
* 40 MHz short GI
* TX STBC
* RX STBC 1 streams
* max A-MSDU len 3839
* DSSS/CCK 40 MHz
HT A-MPDU factor: 0x0003 (65535 bytes)
HT A-MPDU density: 0x0006 (8 usec)
HT MCS set: ff ff ff 00 00 00 00 00 00 00 00 00 01 00 00 00
HT TX/RX MCS rate indexes supported:
MCS index 0
...
MCS index 23
Frequencies:
* 2412 MHz [1] (17.0 dBm)
* 2417 MHz [2] (17.0 dBm)
* 2422 MHz [3] (17.0 dBm)
* 2427 MHz [4] (17.0 dBm)
* 2432 MHz [5] (17.0 dBm)
* 2437 MHz [6] (17.0 dBm)
* 2442 MHz [7] (17.0 dBm)
* 2447 MHz [8] (17.0 dBm)
* 2452 MHz [9] (17.0 dBm)
* 2457 MHz [10] (17.0 dBm)
* 2462 MHz [11] (17.0 dBm)
* 2467 MHz [12] (17.0 dBm) (passive scanning)
* 2472 MHz [13] (17.0 dBm)
* 2484 MHz [14] (disabled)
Bitrates (non-HT):
* 1.0 Mbps
* 2.0 Mbps (short preamble supported)
* 5.5 Mbps (short preamble supported)
* 11.0 Mbps (short preamble supported)
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Band 2:
HT capabilities: 0x11ef
* LPDC coding
* 20/40 MHz operation
* SM PS disabled
* 20 MHz short GI
* 40 MHz short GI
* TX STBC
* RX STBC 1 streams
* max A-MSDU len 3839
* DSSS/CCK 40 MHz
HT A-MPDU factor: 0x0003 (65535 bytes)
HT A-MPDU density: 0x0006 (8 usec)
HT MCS set: ff ff ff 00 00 00 00 00 00 00 00 00 01 00 00 00
HT TX/RX MCS rate indexes supported:
MCS index 0
...
MCS index 23
Frequencies:
* 5180 MHz [36] (18.0 dBm) (passive scanning, no IBSS)
* 5200 MHz [40] (18.0 dBm) (passive scanning, no IBSS)
* 5220 MHz [44] (18.0 dBm) (passive scanning, no IBSS)
* 5240 MHz [48] (18.0 dBm) (passive scanning, no IBSS)
* 5260 MHz [52] (18.0 dBm) (passive scanning, no IBSS, radar detection)
* 5280 MHz [56] (18.0 dBm) (passive scanning, no IBSS, radar detection)
* 5300 MHz [60] (18.0 dBm) (passive scanning, no IBSS, radar detection)
* 5320 MHz [64] (18.0 dBm) (passive scanning, no IBSS, radar detection)
* 5500 MHz [100] (18.0 dBm) (passive scanning, no IBSS, radar detection)
* 5520 MHz [104] (18.0 dBm) (passive scanning, no IBSS, radar detection)
* 5540 MHz [108] (18.0 dBm) (passive scanning, no IBSS, radar detection)
* 5560 MHz [112] (18.0 dBm) (passive scanning, no IBSS, radar detection)
* 5580 MHz [116] (18.0 dBm) (passive scanning, no IBSS, radar detection)
* 5600 MHz [120] (18.0 dBm) (passive scanning, no IBSS, radar detection)
* 5620 MHz [124] (18.0 dBm) (passive scanning, no IBSS, radar detection)
* 5640 MHz [128] (18.0 dBm) (passive scanning, no IBSS, radar detection)
* 5660 MHz [132] (18.0 dBm) (passive scanning, no IBSS, radar detection)
* 5680 MHz [136] (18.0 dBm) (passive scanning, no IBSS, radar detection)
* 5700 MHz [140] (18.0 dBm) (passive scanning, no IBSS, radar detection)
* 5745 MHz [149] (18.0 dBm) (passive scanning, no IBSS)
* 5765 MHz [153] (18.0 dBm) (passive scanning, no IBSS)
* 5785 MHz [157] (18.0 dBm) (passive scanning, no IBSS)
* 5805 MHz [161] (18.0 dBm) (passive scanning, no IBSS)
* 5825 MHz [165] (18.0 dBm) (passive scanning, no IBSS)
Bitrates (non-HT):
* 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
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* WDS
* monitor
* mesh point
Alles anzeigen
Hauptziel ist, eine höhere Übertragungsrate zu bekommen.
Nett wäre es noch, wenn ich das 5-Ghz-Band nutzen könnte.
Hat jemand eine Idee, an was es liegt?
Gruß