Ahoj,

rad bych se zeptal, zda se nekomu uspesne podarilo nakonfigurovat FreeBSD
jako access point na 802.11n.
Pohravam si s Alixem (prosim, pominme vykonnost ALIXu pro 802.11n) a miniPCI kartou Compex WLM200NX (AR9220)a v rezimu 11n ne a ne docilit stabilni konfigurace.
V rezimu 802.11g bezi AP jako vino.

Zde je me prostredi (config pro 11g):
---------------------------------------------------------------------------
do kernelu zakompilovano v sekci:
# Wireless NIC cards
device          wlan            # 802.11 support
options         IEEE80211_DEBUG # enable debug msgs
options         IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
options         IEEE80211_SUPPORT_MESH  # enable 802.11s draft support
device          wlan_wep        # 802.11 WEP support
device          wlan_ccmp       # 802.11 CCMP support
device          wlan_tkip       # 802.11 TKIP support
device          wlan_amrr       # AMRR transmit rate control algorithm
device          ath             # Atheros NICs
device          ath_pci         # Atheros pci/cardbus glue
device          ath_hal         # pci/cardbus chip support
options AH_SUPPORT_AR5416 # enable AR5416 tx/rx descriptors
options         ATH_ENABLE_11N
options         AH_DEBUG
options         ATH_DEBUG
options         ATH_DIAGAPI
device          ath_rate_sample # SampleRate tx rate control for ath


martin@wifi:/home/martin$ uname -a
FreeBSD wifi.mujnet.local 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #0: Wed Jan 29 16:36:32 CET 2014 root@wifi:/usr/obj/usr/src/sys/WIFI i386


martin@wifi:/home/martin$ ifconfig
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8280b<RXCSUM,TXCSUM,VLAN_MTU,WOL_UCAST,WOL_MAGIC,LINKSTATE>
        ether 00:0d:b9:2a:29:44
        inet 192.168.0.68 netmask 0xffffff00 broadcast 192.168.0.255
        inet6 fe80::20d:b9ff:fe2a:2944%vr0 prefixlen 64 scopeid 0x1
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 04:f0:21:01:d7:39
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
        status: running
ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 04:f0:21:01:d7:39
        inet 10.20.30.1 netmask 0xffffff00 broadcast 10.20.30.255
        inet6 fe80::6f0:21ff:fe01:d739%wlan0 prefixlen 64 scopeid 0x7
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
        status: running
        ssid wifitest channel 10 (2457 MHz 11g) bssid 04:f0:21:01:d7:39
regdomain ETSI country CZ ecm authmode WPA2/802.11i privacy MIXED deftxkey 3 AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 30 scanvalid 60
        protmode CTS wme burst dtimperiod 1 -dfs


martin@wifi:/home/martin$ pciconf -lv
ath0@pci0:0:12:0: class=0x028000 card=0x2096168c chip=0x0029168c rev=0x01 hdr=0x00
    vendor     = 'Atheros Communications Inc.'
    device     = 'AR922X Wireless Network Adapter'
    class      = network


martin@wifi:/home/martin$ cat /etc/hostapd.conf
interface=wlan0
debug=2
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=wifitest
wpa=2
wpa_passphrase=wifitest
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
#ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC12][DELAYED-BA][MAX-AMSDU-7935][DSSS_CCK-40][LDPC][GF][SMPS-DYNAMIC][PSMP][LSIG-TXOP-PROT]


martin@wifi:/home/martin$ cat /etc/rc.conf
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
tmpmfs="YES"
#populate_var="YES"
varmfs="YES"
varsize="32m"
#cleanvar_enable="NO"    # Clean the /var directory

gateway_enable="YES"
hostname="wifi.mujnet.local"
#ifconfig_re0="DHCP"
defaultrouter="192.168.0.1"
ifconfig_vr0="inet 192.168.0.68 netmask 255.255.255.0"
sshd_enable="YES"
gateway_enable="YES"

firewall_enable="YES"
firewall_type="SIMPLE"
firewall_quiet="YES"
natd_enable="YES"
natd_interface="vr0"

wlans_ath0="wlan0"
create_args_wlan0="wlanmode hostap country CZ"
ifconfig_wlan0="inet 10.20.30.1 netmask 255.255.255.0 ssid wifitest mode 11g channel 10 WPA" #ifconfig_wlan0="inet 10.20.30.1 netmask 255.255.255.0 ssid wifitest mode 11ng channel 5:ht/40 WPA"
hostapd_enable="YES"

dhcpd_enable="YES"


a jeste a vystup athstats:
martin@wifi:/home/martin$ athstats
11654684 data frames received
1660708  data frames transmit
4489     tx frames with an alternate rate
518292   long on-chip tx retries
63509    tx failed 'cuz too many retries
388      stuck beacon conditions
1M       current transmit rate
722      tx stopped 'cuz no xmit buffer
518      tx frames with no ack marked
1432180  tx frames with short preamble
398186   rx failed 'cuz of bad CRC
5788720  beacons transmitted
19756    periodic calibrations
-0/+0    TDMA slot adjust (usecs, smoothed)
22       rssi of last ack
31       avg recv rssi
-96      rx noise floor
228012   tx frames through raw api
1        cabq frames transmitted
1        spur immunity level
95       listen time
85020    ANI increased spur immunity
85019    ANI decrease spur immunity
390      ANI enabled OFDM weak signal detect
390      ANI disabled CCK weak signal threshold
918139241 cumulative OFDM phy error count
8723112  cumulative CCK phy error count
12455    ANI forced listen time to zero
518247   missing ACK's
610127   bad FCS
31       average rssi (beacons only)
Antenna profile:
[0] tx  1596416 rx    23054
[1] tx        0 rx 11631630

---------------------------------------------------------------------------

Veskera doporucena nastaveni z googlu vetsinou konci:
ath0: stuck beacon; resetting (bmiss count 4)

nebo poklesem rychlosti na par kilobitu.


Diky,

zdravi

Martin




--
Tato zprava byla prohledana na vyskyt viru
a nebezpecneho obsahu antivirovym systemem
MailScanner a zda se byt cista.

--
FreeBSD mailing list ([email protected])
http://www.freebsd.cz/listserv/listinfo/users-l

Odpovedet emailem