[SOLVED] Another Wifi-AP Problem

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

[SOLVED] Another Wifi-AP Problem

Postby moesi » Thu Feb 12, 2015 9:57 pm

Hi!

I want that my raspberry acts as an Access Point. It should be powered on and (out of the box) create a Wirelss Network.
I tried some of the other Help topics about creating an AP / Hotspot with a USB-Wifi dongle but cant get it to work... :/

I made a fresh installation of arch for the raspberry and i use this Wifi-Stick: http://www.tp-link.com/at/products/details/?categoryid=243&model=TL-WN727N
Therefore i followed this topic: https://wiki.archlinux.org/index.php/Software_access_point
and http://archlinuxarm.org/forum/viewtopic.php?f=31&t=7027&p=38715&hilit=router#p38715

i installed hostapd, and added hostapd.conf:
$this->bbcode_second_pass_code('', '
ssid=YourWiFiName
wpa_passphrase=Somepassphrase
interface=wlan0
bridge=br0
auth_algs=3
channel=7
driver=nl80211
hw_mode=g
logger_stdout=-1
logger_stdout_level=2
max_num_sta=5
rsn_pairwise=CCMP
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
')

But i cant get it to work, means i cant find my wifi-network on my notebook...

here some outputs:

$this->bbcode_second_pass_code('', '
$ ip link
wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000

$ iw list
...
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* WDS
* monitor
* mesh point
...
valid interface combinations:
* #{ AP, mesh point } <= 8,
total <= 8, #channels <= 1
...
')
maybe someone can give me a hint how to do this.

I tried via wifi-menu to connect to an other wifi network and using the dongle as client works very well.

cheers
Moesi


SOLUTION EDIT:
had to call:
$this->bbcode_second_pass_code('', 'hostapd -dd /etc/hostapd/hostapd.conf')
Last edited by moesi on Fri Feb 13, 2015 3:56 pm, edited 2 times in total.
moesi
 
Posts: 3
Joined: Thu Feb 12, 2015 8:15 am

Re: Another Wifi-AP Problem

Postby pepedog » Fri Feb 13, 2015 12:06 am

Can you try previous version of hostapd
$this->bbcode_second_pass_code('', 'pacman -U http://rollback.archlinuxarm.org/packages/h/hostapd/hostapd-2.3-1-armv6h.pkg.tar.xz')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Another Wifi-AP Problem

Postby WarheadsSE » Fri Feb 13, 2015 3:01 pm

Which dongle is this?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Another Wifi-AP Problem

Postby moesi » Fri Feb 13, 2015 3:38 pm

pepedog, i tried but didn't change anything. :/
WarheadsSE, http://www.tp-link.com/at/products/details/?categoryid=243&model=TL-WN727N
moesi
 
Posts: 3
Joined: Thu Feb 12, 2015 8:15 am

Re: Another Wifi-AP Problem

Postby moesi » Fri Feb 13, 2015 3:53 pm

OK it works now...

$this->bbcode_second_pass_code('', 'hostapd -dd /etc/hostapd/hostapd.conf')

i havent seen this command in any other tutorial until that one. http://sanjosetech.blogspot.co.at/2013/10/raspberry-pi-using-as-access-point.html

thank you for the help!

greetings
Moesi
moesi
 
Posts: 3
Joined: Thu Feb 12, 2015 8:15 am

Re: [SOLVED] Another Wifi-AP Problem

Postby WarheadsSE » Fri Feb 13, 2015 4:06 pm

Which wireless chip is in that dongle?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 47 guests