Hi Frank,

For 11n-based atheros card, ath9k is the right module. 1) Please read http://wireless.kernel.org/en/users/Drivers/ath9k for information on ath9k driver 2) You will need to install iw tools, which is available at http://www.voyage.hk/dists/0.6/iw/. 3) Then read http://wireless.kernel.org/en/users/Documentation/hostapd for configuration. Probably you only need:

interface=wlan0
driver=nl80211
channel=11
hw_mode=g

in /etc/hostapd/hostapd.conf + the suggested configuration in /README
4) Of course, don't forget /etc/network/interfaces
auto wlan0
iface wlan0 inet static
       address 10.1.10.1
       netmask 255.255.255.0
       broadcast 10.1.10.255
       up nat.sh wlan0 eth0 "10.1.10.0/24"

However, I have problem to get my iPhone connected and probably need more time to investigate. Let me know if there are successful reports on ath9k with Voyage Linux.

Regards,
Punky

Frank Parker wrote:
Fresh install of voyage-0.6.5 on a "Generic PC".  Trying to understand
how to turn this ATOM-based PC device into an access point.  It has an
Atheros wireless card using athk9 kernel module.

voyage:/# lspci -vv -s 06:00.0
06:00.0 Network controller: Atheros Communications Inc. Device 002b (rev 01)
        Subsystem: Foxconn International, Inc. Device e023
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 18
        Region 0: Memory at febf0000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: [40] Power Management version 3
                Flags: PMEClk- DSI- D1+ D2- AuxCurrent=375mA 
PME(D0+,D1+,D2-,D3hot+,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [50] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 
Enable-
                Address: 00000000  Data: 0000
        Capabilities: [60] Express (v2) Legacy Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <512ns, L1 
<64us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- 
Unsupported-
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- 
TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency 
L0
<512ns, L1 <64us
                        ClockPM- Suprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ 
DLActive-
BWMgmt- ABWMgmt-
        Capabilities: [100] Advanced Error Reporting <?>
        Capabilities: [140] Virtual Channel <?>
        Capabilities: [160] Device Serial Number 12-14-24-ff-ff-17-15-00
        Capabilities: [170] Power Budgeting <?>
        Kernel driver in use: ath9k
        Kernel modules: ath9k

I see that hostapd is included with voyage, and I have read a lot of
documentation but it's not clear to me how to configure it.

The module is loaded:

voyage:/# lsmod | grep ath
ath9k                 281864  0
mac80211              142608  1 ath9k
rfkill                  8320  2 ath9k
cfg80211               51732  2 ath9k,mac80211
led_class               3428  1 ath9k


For some reason, there is a wlan0 interface instead of ath0 like most
of the examples I've read.

voyage:/# ifconfig ath0
ath0: error fetching interface information: Device not found

voyage:/# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 0c:ee:e6:cb:f4:54
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


The iwconfig command gives this:

voyage:/# iwconfig wlan0
wlan0     IEEE 802.11bgn  ESSID:""
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated
          Tx-Power=20 dBm
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0



Do I need to edit these?
/etc/default/hostapd
/etc/hostapd/hostapd.conf
/etc/network/interfaces?
others?

_______________________________________________
Voyage-linux mailing list
[email protected]
http://list.voyage.hk/mailman/listinfo/voyage-linux


--
Regards,
Punky

Voyage Solutions (http://solution.voyage.hk)
* Embedded Solutions and Systems
 - Mesh Networking, Captive Portal, IP Surveillance, VoIP/PBX
 - Network Engineering, Development Platform and Consultation


_______________________________________________
Voyage-linux mailing list
[email protected]
http://list.voyage.hk/mailman/listinfo/voyage-linux

Reply via email to