fit-PC2i as an accesspoint

WLAN adapter and miniPCI-express slot
nabecyan
Posts: 6
Joined: Mon Jun 07, 2010 2:04 pm

Re: fit-PC2i as an accesspoint

Post by nabecyan »

Happy New Year ,every one !

Code: Select all

[root@zeus]# iwconfig wlan0 mode master
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; Invalid argument.
Yes, I also tried it and the 'iwconfig' command returns the same error.

I think it is not the 'iwconfig' command but the 'hostapd' itself which enables the Master mode.
So, don't worry if 'iwconfig' returns an error.
Your error seems that 'nl80211' driver has not installed properly.
Did you install drivers via debian package tool ( apt-get or aptitude ) ?
I installed them manually and succeeded turn Master mode ON , but previously when I tried with apt-get installer ,I can not turn ON to Master mode.

hotchilli
Posts: 2
Joined: Fri Dec 31, 2010 2:26 pm

Re: fit-PC2i as an accesspoint

Post by hotchilli »

OK, it's working :D

Code: Select all

[root@zeus]# hostapd /etc/hostapd/hostapd.conf 
Configuration file: /etc/hostapd/hostapd.conf
Using interface wlan0 with hwaddr 00:0d:f0:8d:60:13 and ssid 'TEST_AP'

Code: Select all

[root@zeus]# iwconfig wlan0
wlan0     IEEE 802.11bgn  Mode:Master  Frequency:2.437 GHz  Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

Code: Select all

[root@zeus]# iw wlan0 info
Interface wlan0
        ifindex 9
        type AP

I downloaded the RT3070 firmware from http://eng.ralinktech.com.tw/support.php?s=2 and put the file rt2870.bin into /lib/firmware. After that, it just worked!

I've only just got it working, but I can see and connect to the TEST_AP. Excellent - now to set it up properly. Thanks nabecyan for your work and help.

vega
Posts: 4
Joined: Sat Dec 25, 2010 10:34 pm

Re: fit-PC2i as an accesspoint

Post by vega »

Hey guys,

after tinkering a bit around I made it work for me.
Meanwhile I still have to add the wlan0 interface to the bridge manually as well as starting the hostapd.
Furthermore I can only protect my wlan with WEP, didn't bring it up with WPA(2) so far.

Now I can connect with wlan clients to the access point but don't get access to internet. What is there to do with iptables/firewalls and so on? What did you do to make it work? Currently I can only connect to the access point ...

Did you made any experience with the stability of the wlan connection?
My connections breaks down several times or it runs really slow (e.g. when I move files).

~vega

EDIT:
I solved the problem with the internet access ... there was a wrong nameserver IP address added in the /etc/resolv.conf ...

But couldn't yet bring up a WPA(2) connection? Is there anyone who did it already successful? WLAN connection is still really unstable too ...

nabecyan
Posts: 6
Joined: Mon Jun 07, 2010 2:04 pm

Re: fit-PC2i as an accesspoint

Post by nabecyan »

Hi all,
vega wrote: But couldn't yet bring up a WPA(2) connection? Is there anyone who did it already
successful? WLAN connection is still really unstable too ...
I use hostapd as WPA/WPA2 AP. It works stable.
I set hostapd.conf as follows.

$ sudo cat /etc/hostapd/hostapd.conf
interface=wlan0
bridge=br0
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=MyHostapd_AP
#country_code=US
country_code=JP
hw_mode=g
channel=1
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0
wme_enabled=1
wme_ac_bk_cwmin=4
wme_ac_bk_cwmax=10
wme_ac_bk_aifs=7
wme_ac_bk_txop_limit=0
wme_ac_bk_acm=0
wme_ac_be_aifs=3
wme_ac_be_cwmin=4
wme_ac_be_cwmax=10
wme_ac_be_txop_limit=0
wme_ac_be_acm=0
wme_ac_vi_aifs=2
wme_ac_vi_cwmin=3
wme_ac_vi_cwmax=4
wme_ac_vi_txop_limit=94
wme_ac_vi_acm=0
wme_ac_vo_aifs=2
wme_ac_vo_cwmin=2
wme_ac_vo_cwmax=3
wme_ac_vo_txop_limit=47
wme_ac_vo_acm=0
ieee80211n=1
eapol_key_index_workaround=0
eap_server=0
own_ip_addr=127.0.0.1
wpa=3
wpa_passphrase=***********************
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP

$

Thanks.

vega
Posts: 4
Joined: Sat Dec 25, 2010 10:34 pm

Re: fit-PC2i as an accesspoint

Post by vega »

Hey nabecian,

thank you for the answer. I guess the wpa=3 option made trouble (was set to 2).

Well, there are still connection problems.
Either I get no connection or after 15 connection tries or more I get one which runs really unstable.
I have a reproducable error message from the /var/log/kern.log for each connection try (MAC address is replaced by zeros):

Code: Select all

wlan0: authenticate with 00:00:00:00:00:00 (try 1)
wlan0: authenticated
wlan0: associate with 00:00:00:00:00:00 (try 1)
wlan0: RX AssocResp from 00:00:00:00:00:00 (capab=0x411 status=0 aid=1)
wlan0: associated
wlan0: disassociated from 00:00:00:00:00:00 (Reason: 7)
wlan0: deauthenticating from 00:00:00:00:00:00 by local choice (reason=3)
cfg80211: All devices are disconnected, going to restore regulatory settings
cfg80211: Restoring regulatory settings
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Any idea?

So far i got a connection for only two times which were dropped after ~30 seconds.

Did you install wlan drivers manually? How are your "peripherals" configured concerning this toublesome wlan story ... ?

~vega

nabecyan
Posts: 6
Joined: Mon Jun 07, 2010 2:04 pm

Re: fit-PC2i as an accesspoint

Post by nabecyan »

vega wrote: Did you install wlan drivers manually? How are your "peripherals" configured concerning this toublesome wlan story ... ?
~vega
Sorry too late posting.
Because when I update ubuntu 10.04LTS to 10.10, hostapd could not set RT3070 as AP.
I tried to solve this problem, and finally succeeded to set up AP again.

The compat-wireless driver I used was not suitable for new kernel 2.6.32-32 (which was stable with 2.6.32-27 kernel).
Then I got newest version of compat-wireless driver, but failed to compile.
I tried to other driver and they did not recognize RT3070 properly.
Finally using "compat-wireless-2.6.39-rc6-1.tar.bz2" from "http://wireless.kernel.org/en/users/Download/stable/" succeded!

Installing process and commands are the same as I reported previous post.
I manually install the compat-wireless driver with command "make && make install".
Now I wrote this post from PowerBook G4 Mac via fit-PC2i AP (WPA/WPA2).
This AP is quite stable. Also provide server function DNS, DHCP,Email,Proxy,Http.
I'm using with PSP and Mac Note, iPhone4.
All these clients can connect to this AP easy same as retail Wireless Router.

Dominik
Posts: 30
Joined: Wed Jul 21, 2010 6:05 pm

Re: fit-PC2i as an accesspoint

Post by Dominik »

Hm, I tried compat-wireless-2.6.39-rc6-1.tar.bz2 on my debian squeeze. wep works well! But with wpa-psk I got similar problem as already described at hostapd mailing list: http://readlist.com/lists/shmoo.com/hostap/2/10116.html
I cannot establish a connection:

Code: Select all

wlan0: STA 00:23:76:4d:57:57 IEEE 802.11: authenticated
mgmt::deauth
deauthentication: STA=00:23:76:4d:57:57 reason_code=1
wlan0: STA 00:23:76:4d:57:57 WPA: event 3 notification
WPA: 00:23:76:4d:57:57 WPA_PTK entering state DISCONNECTED
WPA: 00:23:76:4d:57:57 WPA_PTK entering state INITIALIZE
wlan0: STA 00:23:76:4d:57:57 IEEE 802.1X: unauthorizing port
Could not set station 00:23:76:4d:57:57 flags for kernel driver (errno=95).
wlan0: STA 00:23:76:4d:57:57 IEEE 802.11: deauthenticated

Post Reply

Return to “WLAN and miniPCI-e”