Martin Hejl schrieb: > B wrote: >> I cannot interpret all of this output, but one can see a lot of receive >> errors due to bad CRC. > Sorry, I can't help with that, other than pointing to the obvious - how > far away from the AP is your laptop? Any concrete walls, ceilings or > something like that? Is the pigtail for the antenna properly connected? > It's easy to not properly connect those darn little things. > Channel 1 should usually not be a problem regarding other WIFI networks > - since at least in my neighborhood, everybody seems to be using channel > 6 (probably the default on commercial APs). > >> So my idea is to switch to different channels, but whatever I write in >> /etc/network/interfaces that is like >> >> wireless-channel 11 >> >> with different channelnumbers or simply left, I always get the same >> result, the AP working on channel 1: > Odd. Are you using WPA? If so, you might want to try adding > > channel_policy=2 > channel=11 > > in your hostapd.conf (then restart hostapd, and then "ifdown ath0" and > "ifup ath0"). Maybe that will solve the issue. > >> PS: Im using a wlm54g23 in an alixbox (www.pcengines.ch/wlm54g23.htm). >> It should support 13 channels in Europe. > Is it set to the country code of Germany (I assume Germany due to your > email address)? 276 would be the one, I think. > But it wouldn't matter for setting channel 11 - that should work no > matter what country code is configured. >
Hej Martin, hej all, well, here I go again.....: I made some steps including install Windows on my Laptop and trying with a commercial Belkin AP and so on. At last I found out that indeed channel switching is the solution for my bad link quality. So, I enabled wpa with the following hostapd.conf (I collected all parameters at the bottom of that file): interface=ath0 driver=madwifi logger_syslog=-1 logger_syslog_level=0 logger_stdout=-1 logger_stdout_level=0 debug=4 ctrl_interface=/var/run/hostapd # ctrl_interface_group=0 # ssid=gartenstr hw_mode=g channel_policy=2 channel=8 macaddr_acl=0 # 1 = deny unless in accept list auth_algs=3 ignore_broadcast_ssid=0 wpa=3 wpa_psk=<my stog key generated by https://www.grc.com/passwords.htm> #wpa_passphrase=Spass wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP CCMP #####eap_authenticator=0 #####eap_message=Moin eap_server=0 eapol_key_index_workaround=0 #####own_ip_addr=127.0.0.1 Starting the daemon manually: # /usr/sbin/hostapd -B -P /var/run/hosapd.pid $DAEMON_OPTS /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf Line 733: unknown configuration item 'channel_policy' 1 errors found in configuration file '/etc/hostapd/hostapd.conf' So I commented the line and hostapd is starting. WPA is enabled but still the card works on channel 1. Here is the scan from my laptop: Cell 04 - Address: 00:80:48:54:85:81 ESSID:"" Mode:Master Frequency:2.412 GHz (Channel 1) Quality=18/70 Signal level=-77 dBm Noise level=-95 dBm Encryption key:on Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s 48 Mb/s; 54 Mb/s Extra:bcn_int=100 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : CCMP TKIP Authentication Suites (1) : PSK IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : CCMP TKIP Authentication Suites (1) : PSK Extra:wme_ie=dd180050f2020101830002a3400027a4000042435e0062322f00 Extra:ath_ie=dd0900037f01010020ff7f I found this in the hostapd-configuration: Channel and Channel Policy Either the channel is set explicitly (channel_policy=0) and channel is set to the specified channel number or automatic channel selection is configured. There are three options for automatic channel selection:: 1. Select the first available channel of the first available mode (channel_policy=1). In this case, the channel item is ignored. 2. Automatically select the best channel (channel_policy=2). In this case, the channel item is ignored. 3. Automatically select the best channel and allow channel to be changed (channel_policy=3). It seems, I should use '0', but the parameter seems invalid...??? Thanks for help! Boris ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ------------------------------------------------------------------------ leaf-user mailing list: [email protected] https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/
