• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Wifi Acces Point  (Read 2162 times)
kukodajanos
Newbie
*

Karma: 0
Posts: 6


View Profile
« on: October 20, 2010, 01:04:07 PM »

Hi!

I would like to use my plug computer as a wifi router, so i went throw the tutorial below. But something dont work. I can in the consol download with wget from internet, but in my browser appears nothing.

http://plugcomputer.org/plugwiki/index.php/Setting_GuruPlug_to_be_a_WiFi_Access_Point

modprobe uap8xxx ---> OK
guruplug-debian:~# ifconfig uap0 192.168.1.1 up ---> OK
guruplug-debian:~# /usr/bin/uaputl sys_cfg_ssid $SSID ---> OK
guruplug-debian:~# /usr/bin/uaputl bss_start ---> Fail: ERR:Could not start BSS!
guruplug-debian:~# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE ---> OK
guruplug-debian:~# echo 1 > /proc/sys/net/ipv4/ip_forward ---> OK
guruplug-debian:~# /etc/init.d/udhcpd start ---> OK
guruplug-debian:~# /etc/init.d/dnsmasq start ---> OK

Somebody has any idea? I think something wrong with uaputl.
Logged

flipflip
Jr. Member
**

Karma: 4
Posts: 50


Hopplaschorsch!


View Profile
« Reply #1 on: October 21, 2010, 02:44:39 AM »

I use the following command sequence:

Code:
        uaputl sys_cfg_radio_ctl 0           # radio on
        uaputl sys_cfg_channel $CH           # set channel
        uaputl sys_cfg_ssid $SSID            # set SSID
        uaputl sys_cfg_protocol 32           # WPA2
        uaputl sys_cfg_cipher 8 8            # AES CCMP / AES CCMP
        uaputl sys_cfg_wpa_passphrase $PW    # set password
        uaputl sys_cfg_bcast_ssid_ctl 1      # enable SSID broadcast
        uaputl bss_start                     # start the BSS
        # ugly hack to make it actually work..
        sleep 2
        uaputl bss_stop
        sleep 3
        uaputl bss_start
        uaputl sys_cfg_tx_power 20

See here for more details and my scripts: http://plugcomputer.org/plugforum/index.php?topic=1648.0
Logged

GPS+ Debian Squeeze AP router firewall dhcpd named NAS Squeezebox OpenVPN All running fine.

kukodajanos
Newbie
*

Karma: 0
Posts: 6


View Profile
« Reply #2 on: October 23, 2010, 09:55:26 AM »

Hey!

I dont understand this tutorial, why is these commands specified.  I found all of the command in /root/init_setup.sh. So what could be the problem? I think in boot time, all the command had to executed.

#!/bin/sh

# This is called from /etc/rc.local to perform the initial setup.

# We always bootup in AP mode. Delete any stale files
rm -f /etc/wlanclient.mode
SSID=Plug2-uAP-`ifconfig eth0 | awk -F ":" '/HWaddr/ {print $6$7}'`

insmod /root/uap8xxx.ko
ifconfig uap0 192.168.1.1 up
/usr/bin/uaputl sys_cfg_ssid $SSID
/usr/bin/uaputl bss_start
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
/etc/init.d/udhcpd start
/etc/init.d/dnsmasq start
iptables -A INPUT -i uap0 -p tcp -m tcp --dport 80 -j ACCEPT


# Re-enable bluetooth. In the earlier case, it didn't find the firmware.
#rmmod libertas_sdio libertas btmrvl_sdio btmrvl bluetooth 2>/dev/null
rmmod btmrvl_sdio btmrvl
/etc/init.d/bluetooth start

modprobe btmrvl_sdio
hciconfig hci0 up
hciconfig hci0 piscan
/usr/bin/mute-agent &

# Set leds
echo 1 > `eval ls /sys/class/leds/*plug*\:green\:health/brightness`
echo 1 > `eval ls /sys/class/leds/*plug*\:green\:wmode/brightness`
« Last Edit: October 23, 2010, 10:19:34 AM by kukodajanos » Logged

Pages: [1]
Print
Jump to: