Fwd: Trying to get IEEE80211n (in hostap) running for ATH9280

Georg Bege georg at bege.email
Sat Jul 22 14:40:53 UTC 2017


Hi guys,

just wanted to tell that I got it up and running.
Rather than trying some commands myself, I just chose an n-compatible
channel (channel 40) from the list and put it into hostapd.conf

hostapd.conf managed to configure the card into the correct mode :-)

However for informative purposes, I'd still like to know what the
difference is and why in this case hostapd.conf is mandatory?
(I mean I know it is for WPA, but why did the kernel refuse the manual
commands?).

regards,
Georg


-------- Weitergeleitete Nachricht --------
Betreff: Trying to get IEEE80211n (in hostap) running for ATH9280
Datum: Sat, 22 Jul 2017 15:21:15 +0200
Von: Georg Bege <georg at bege.email>
Antwort an: georg at bege.email
An: freebsd-wireless at freebsd.org

Hello everyone,

Im one of the sad people not getting IEEE80211n to run (in hostap!).
Im having an (should be) supported AR9280 chip using an pcMachines APU2
device.

----
root at orion:~ # dmesg | grep ath
ath0: <Atheros 9280> mem 0xfe800000-0xfe80ffff at device 0.0 on pci4
[ath] enabling AN_TOP2_FIXUP
ath0: [HT] enabling HT modes
ath0: [HT] 1 stream STBC receive enabled
ath0: [HT] 1 stream STBC transmit enabled
ath0: [HT] 2 RX streams; 2 TX streams
ath0: AR9280 mac 128.2 RF5133 phy 13.0
ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0
---

At the moment, the machine is running an 11.0-RELEASE (pretty vanilla,
except a couple of installed pkg's)
I just got my hands on it a couple of days ago, right now Im using the
well-working 11g mode:

------------------------ snip ------------------------------
wlan0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric
0 mtu 1500
	ether 04:f0:21:30:ee:3b
	inet6 fe80::6f0:21ff:fe30:ee3b%wlan0 prefixlen 64 scopeid 0x6
	nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
	media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
	status: running
	ssid int.ninth-art.de channel 10 (2457 MHz 11g) bssid 04:f0:21:30:ee:3b
	regdomain ETSI country DE ecm authmode WPA2/802.11i privacy MIXED
	deftxkey 2 AES-CCM 2:128-bit txpower 30 scanvalid 60 protmode CTS wme
	burst dtimperiod 1 -dfs
	groups: wlan
------------------------ snip ------------------------------

The wlan0 device is part of an bridge, because I need it working that
way (not sure if that matters).

I get proper supported channels with 'ifconfig wlan0 list channels':

------------------------ snip ------------------------------
root at orion:~ # ifconfig wlan0 list channels
Channel   1 : 2412  MHz 11g ht       Channel  48 : 5240  MHz 11a ht
Channel   2 : 2417  MHz 11g ht       Channel  52 : 5260* MHz 11a ht
Channel   3 : 2422  MHz 11g ht       Channel  56 : 5280* MHz 11a ht
Channel   4 : 2427  MHz 11g ht       Channel  60 : 5300* MHz 11a ht
Channel   5 : 2432  MHz 11g ht       Channel  64 : 5320* MHz 11a ht
Channel   6 : 2437  MHz 11g ht       Channel 100 : 5500* MHz 11a ht
Channel   7 : 2442  MHz 11g ht       Channel 104 : 5520* MHz 11a ht
Channel   8 : 2447  MHz 11g ht       Channel 108 : 5540* MHz 11a ht
Channel   9 : 2452  MHz 11g ht       Channel 112 : 5560* MHz 11a ht
Channel  10 : 2457  MHz 11g ht       Channel 116 : 5580* MHz 11a ht
Channel  11 : 2462  MHz 11g ht       Channel 120 : 5600* MHz 11a ht
Channel  12 : 2467  MHz 11g ht       Channel 124 : 5620* MHz 11a ht
Channel  13 : 2472  MHz 11g ht       Channel 128 : 5640* MHz 11a ht
Channel  36 : 5180  MHz 11a ht       Channel 132 : 5660* MHz 11a ht
Channel  40 : 5200  MHz 11a ht       Channel 136 : 5680* MHz 11a ht
Channel  44 : 5220  MHz 11a ht       Channel 140 : 5700* MHz 11a ht
------------------------ snip ------------------------------

I tried several commands such as 'ifconfig wlan0 mode 11n (or 11ng)
channel 6:ht/40 - or just channel 40 etc.

All my attempts result in: ifconfig: SIOCS80211: Invalid argument

Not sure what's the proper way to setup 11n(g) - there are multiple
entries on multiple forums, people basically tinkering around until they
may get it working (or not?).

Any hints where I can read up how this works or an page which tells the
definitive commands which are necessary is highly appreciated.
As far as I understood 11.0-RELEASE should be recent enough (?), however
I can of course upgrade the box to 11.0-STABLE as well.
Just not sure if its worth the buzz...

best regards,
Georg
-- 
Georg Bege
Mail: georg at bege.email
XMPP: therion at ninth-art.de
IRC: megaTherion @ Freenode



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 858 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-wireless/attachments/20170722/c2554f80/attachment.sig>


More information about the freebsd-wireless mailing list