Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wpa_supplicant+madwifi in master mode
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
milosn
n00b
n00b


Joined: 08 Jun 2002
Posts: 6

PostPosted: Tue Jan 31, 2006 9:48 pm    Post subject: wpa_supplicant+madwifi in master mode Reply with quote

Hi

I am trying to set up home AP using wpa_supplicant+madwifi ... where exactly am i suppose to specify (in /etc/wpa_supplicant.conf) that the card should be set to master mode?

Using iwconfig based setup ATM and it works but i would really like to get that wpa_supplicant thingie working. Example configs are most welcome ... otherwise its trial and error i guess ;).

Regards
Milos
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2247
Location: Paris - France

PostPosted: Tue Jan 31, 2006 10:16 pm    Post subject: Reply with quote

Hi!
I think there's no need to set the master mode anywhere. Hostapd should take care of this.

EDIT: Sorry, actually madwifi-tools is taking care of this. You have to put this in /etc/udev/rules.d/65-madwifi.rules:
Code:
KERNEL=="wifi[0-9]*", DRIVER=="ath_pci", ACTION=="add", RUN+="/sbin/wlanconfig ath create wlandev %k wlanmode ap"


The thing is, you have to use the latest versions of hostapd and wpa_supplicant and not to forget enabling the madwifi USE flag before emerging.
I also think wpa_supplicant isn't to be configured on the AP side, at least, I think I haven't done anything like this and my AP works just fine.

So here are my config files:
/etc/conf.d/hostapd
Code:
INTERFACES="ath0"
CONFIGS="/etc/hostapd/hostapd.conf"
OPTIONS="-B"

/etc/hostapd/hostapd.conf
Code:
##### hostapd configuration file ##############################################
bridge=br0 #Comment this out if you iface isn't bridged
interface=ath0
driver=madwifi
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=my_SSID
macaddr_acl=1
accept_mac_file=/etc/hostapd/hostapd.accept
deny_mac_file=/etc/hostapd/hostapd.deny
auth_algs=3
eap_server=0
own_ip_addr=192.168.1.1
wpa=3
wpa_psk=my_key
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP

Of course you'll have to set the IP adress for ath0 in /etc/conf.d/net. I hope I haven't forgotten anything.
Oh and it's good to take a look at this HOWTO.

Let me know if you have any problems. :wink:
Have fun!
Back to top
View user's profile Send private message
milosn
n00b
n00b


Joined: 08 Jun 2002
Posts: 6

PostPosted: Tue Jan 31, 2006 11:37 pm    Post subject: Reply with quote

Adrien wrote:

Oh and it's good to take a look at this HOWTO.

Let me know if you have any problems. :wink:
Have fun!


that HOWTO is exactly what i was looking for ... thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum