Your own wlan access point

Plugging in devices such as LAN adapters, Wi-Fi cards, printers, etc. to Arch Linux ARM.

Your own wlan access point

Postby LaTristesse » Mon Aug 30, 2010 6:06 pm

I recently read something about the "master mode" https://help.ubuntu.com/community/WifiDocs/MasterMode and https://help.ubuntu.com/community/WifiDocs/WirelessAccessPoint. I wonder if it would be possbile to make my dockstar become an access point in order to get better wlan connections with my iphone. Like the new Windows 7 feature calles "virtual wifi" http://www.connectify.me/.

I searched for compatible devices at http://wireless.kernel.org/en/users/Drivers (you have to choose "AP: Yes" fromt he drop-down menu) but it seems there are only a few usb sticks which support the AP feature.

1. p54usb
2. rt73usb
3. rt2500usb

Are there drivers avaible for this chipsets and would it be possible to make something like this happen?
Last edited by LaTristesse on Tue Aug 31, 2010 12:41 pm, edited 1 time in total.
LaTristesse
 
Posts: 35
Joined: Mon Jul 26, 2010 8:57 pm

Re: Your own wlan access point

Postby DePingus » Tue Aug 31, 2010 12:34 pm

I'm sure there's a way (I wouldn't know what that is). BUT...at this point wouldn't it be easier/faster/cheaper to buy a $20 DD-WRT compatible router to do this?

I'm just thinking practically...if you're doing this for fun then forget I said anything! :D
DePingus
 
Posts: 22
Joined: Sat Jul 03, 2010 9:41 pm

Re: Your own wlan access point

Postby LaTristesse » Tue Aug 31, 2010 12:46 pm

$this->bbcode_second_pass_quote('DePingus', 'i')f you're doing this for fun then forget I said anything! :D


Beside the pure challenge of making it possible I was thinking about the power you could save without running an addtional device like the wrt. But since I'm new to Linux and not well sophisticated concerning integrating new wlan driver I'm stuck here.

I found the TL-WN422G device very suitable but it seems it is only capable of doing AP when patches are applied. See this for further Information. What do you think?

http://marc.info/?l=linux-wireless&m=12 ... 101558&w=3
LaTristesse
 
Posts: 35
Joined: Mon Jul 26, 2010 8:57 pm

Re: Your own wlan access point

Postby pepedog » Tue Aug 31, 2010 2:50 pm

I got an ath9k based wirless in my eeebox with Mandriva. Never got AP mode working, but ad-hoc fine.
Think my usb dongle (popcorn hour) has same, will have another crack at it. Be patient.

Dave
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Your own wlan access point

Postby pepedog » Tue Aug 31, 2010 5:14 pm

Looks like this dongle is ar9170usb, and this looks promising
http://wireless.kernel.org/en/users/Drivers/carl9170
Looks complicated

Dave
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Your own wlan access point

Postby pepedog » Fri Sep 03, 2010 11:50 am

Progress
I compiled a module, then when that didn't work patched in the module to kernel source, had to edit kbuilds, patch stuff and knew it would compile. Got firmware files in right place, rebuilt kernel and installed modules, and rebooted.
modprobe carl9170usb

dmesg tells me this
usb 1-1.2: USB disconnect, address 15
usb 1-1.2: new high speed USB device using orion-ehci and address 16
usb 1-1.2: reset high speed USB device using orion-ehci and address 16
usb 1-1.2: firmware date: 2010-05-12
usb 1-1.2: driver FW API: 2010-05-12, Ver:1.0.5.3
ath: EEPROM regdomain: 0x833a
ath: EEPROM indicates we should expect a country code
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x37
ath: Country alpha2 being used: GB
ath: Regpair used: 0x37
phy13: Selected rate control algorithm 'minstrel'
cfg80211: Calling CRDA for country: GB
usb 1-1.2: Atheros AR9170 is registered as 'phy13'
cfg80211: Current regulatory domain intersected:
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)

[root@myplugbox firmware]# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

eth1 no wireless extensions.

wlan0 IEEE 802.11bg Mode:Managed Access Point: Not-Associated
Tx-Power=0 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off

Have to check which driver used, any ideas?

Dave
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Your own wlan access point

Postby LaTristesse » Mon Sep 13, 2010 8:47 am

Bought me a TP-Link TL-WN821N usb wlan-stick and trying to get the driver running first. I downloaded the 3 firmware files from http://www.linuxwireless.org/en/users/D ... 0#firmware and put them into /lib/firmware/ but I dont know how to get them working.
LaTristesse
 
Posts: 35
Joined: Mon Jul 26, 2010 8:57 pm

Re: Your own wlan access point

Postby pepedog » Mon Sep 13, 2010 10:01 am

You will need to compile some software.
hostapd http://wireless.kernel.org/en/users/Doc ... on/hostapd
and
iw http://wireless.kernel.org/en/users/Doc ... Getting_iw

Hostapd is the only way to get access point authentication, and it uses iw to do that.
They compile easy.

Dave
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Your own wlan access point

Postby pepedog » Mon Sep 13, 2010 10:09 am

Is this TP link ar9170 chipset?
I don't think it supports AP mode then, but try it out.
You only need the one part fw, or the 2 parts.
The 2 parts are stock and don't work in ap mode.
Once you installed iw, see if setting mode to ap works, or throws an error.

Dave
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Your own wlan access point

Postby LaTristesse » Mon Sep 13, 2010 10:30 am

$this->bbcode_second_pass_quote('pepedog', 'I')s this TP link ar9170 chipset?


I thought ap mode was working for a ar9170 chipset because this was listed on http://www.linuxwireless.org/en/users/Drivers/carl9170

$this->bbcode_second_pass_quote('', 'w')orking

* 802.11 a/b/g/draft-n
* accesspoint, ad-hoc, monitor (with injection) and station mode
* cryptographic accelerator when operating as a single station, or single accesspoint.
* Multiple interfaces
*

full support for MRR (minstrel & minstrel_ht) rate control algorithms
* Input device for WPS button event (depending on hardware)
* automatic recovery from several fatal events
* Regulatory domain restrictions
Last edited by LaTristesse on Mon Sep 13, 2010 11:16 am, edited 1 time in total.
LaTristesse
 
Posts: 35
Joined: Mon Jul 26, 2010 8:57 pm
Top

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 8 guests