Re: checking wireless cable

2011-08-21 Thread geoffrey mendelson


On Aug 19, 2011, at 10:22 PM, Oleg Goldshmidt wrote:


geoffrey mendelson geoffreymendel...@gmail.com writes:


My guess is that you changed the region/country/jusridiction


In different parts of the world, different channels are legal. For  
example, in some places channels 1-13 are legal, others, 1-12, or  
3-14. In Israel it is 4-8 with 1-3 and 9-13 shared with the IDF.


Since a wifi channel really uses 3 channels, one one each side of the  
main channel, if your router is set for one jurisdiction and the  
computer another, channels at either end may not work.


I'm sure is not applicable to you, is that if you don't change the  
SSID or use encryption, your computer will sign on to the strongest  
network of the same name. As the signal fades or gets stronger  
(roaming) the computer will switch to the strongest signal it finds.


All those people who got BEZEQ wifi routers with an SSID of SIEMENS  
were using each other's wifi without knowing it.


Don't say it's not happening now, when I was in the hospital in April,  
there were 3 networks I could reach, the hospital's protected network  
for internal use, the hopsital's open networks giving almost 100%  
coverage on several channels and an open network with a default name  
from another building.


A friend of mine just moved to haifa, and he found that there was  
free wifi in his new apartment. :-(


Geoff.

--
Geoffrey S. Mendelson,  N3OWJ/4X1GM












___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: checking wireless cable

2011-08-20 Thread Oleg Goldshmidt
geoffrey mendelson geoffreymendel...@gmail.com writes:

 My guess is that you changed the region/country/jusridiction

What do you mean?

 to one where channel 2 is not legal.

CHANNEL is set to auto...

 Where you just in the new world?

The old one, actually, and I didn't use my laptop there at all.

-- 
Oleg Goldshmidt | p...@goldshmidt.org

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: checking wireless cable [SORT OF SOLVED]

2011-08-20 Thread Oleg Goldshmidt

OK, it is sort of solved, but I don't know what combination of
incantations was crucial.

In the hope that it may help someone in the future here is a rough
reconstruction of what I did, minus various futile attempts.

I added PERSISTENT_DHCLIENT=yes to ifcfg-wlan0, commented out
KEY_MGMT=WPA-PSK, and disabled security on the router. I also kept
NM_CONTROLLED=no.

I removed all the *.lease and *.leases files from /var/lib/dhclient.

I restarted the computer. I kept watching /var/log/messages and
iwevent in two terminals to see what was going on.

This led to success - I connected. I concluded that the problem was
related to WPA-PSK in one way or another.

I reenabled WPA2/personal security on the router and set the PSK to a
new value. I uncommented KEY_MGMT in ifcfg-wlan0 and modified WPA_PSK
in keys-wlan0.

This led to an interesting conclusion that despite all this iwevent
still showed that wlan0 operated with Encryption key: off which I
thought was weird (wpa_supplicant was running - I checked). As a
result I saw in syslog that there were no DHCP offers and the thing
evenually timed out (multiple times since I kept
PERSISTENT_DHCLIENT=yes). 

I had a hunch that wpa_supplicant was somehow controlled by
NetworkManager which, since I had disabled its control over wlan0, did
not pick up the configuration change. This was a complete WAG (not the
British variety - the American one - wild-assed guess), I really have
no idea what I am talking about here - I could never figure out what
the bloody NM did or did not do - its documentation is
appaling/non-existent. Am I right that it is a GNOME thingy (I am a
KDE user)?

I re-enabled NM_CONTROLLED=yes in the hope that NM would somehow
affect wpa_supplicant. It did - *somehow*, I don't understand exactly
how - but now syslog got flooded with NM messages related to
wpa_supplicant's state changing between disconnected and scanning.
Unfortunately, the link never got to a working state - NM kept issuing
a link timed out warning.
 
It was absolutely unclear to me what was going on (googling at various
stages did not help) and on a hunch I went the Microsoft way and
rebooted the computer once again (I do not know if just reloading
iwlagn module would help as much). Lo and behold, I had wireless
working after boot!

So now I am basically back to the original configuration, with a
different WPA_PSK and with PERSISTENT_DHCLIENT=yes, but I seriously
doubt either of these changes is actually relevant. It didn't work
until I rebooted, but I had rebooted more than once in the original
configuration, too...

It's got to be simpler. I consider myself to be fairly knowledgeable
and experienced, but it took me quite a while and I still don't know
what the problem was or what the fix was.

Proudly sent through a wireless interface...

-- 
Oleg Goldshmidt | p...@goldshmidt.org

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


checking wireless cable

2011-08-18 Thread Oleg Goldshmidt

Hi,

I have a weird - and rather embarrassing - problem after returning
home from a trip. My laptop's wireless card can't connect to the
wireless router (D-Link DIR-615) anymore. I am fairly certain that no
configuration has changed. 

Fedora 14 on an X200 ThinkPad with Intel iwl5100AGN card. Firmware
installed, kernel 2.6.35.13-91.fc14.x86_64,

# lsmod | grep iwlagn
iwlagn209445  0 
iwlcore   195698  1 iwlagn
mac80211  229063  2 iwlagn,iwlcore
cfg80211  134981  3 iwlagn,iwlcore,mac80211

(tried to reload iwlagn multiple times).

Restarting the network yields:

Bringing up interface wlan0:  
Determining IP information for wlan0... failed; no link present.  Check cable?

(a fun message IMHO). In /var/log/messages I see

kernel: [ 2355.907603] ADDRCONF(NETDEV_UP): wlan0: link is not ready

Things I've tried (beyond fruitless googling, of course - no forums
have useful info of any kind):

1. disabling wireless security
2. making sure the device is not under NetworkManager control
   (switched on and off, uninstalled NM and reinstalled again) - NM is
   not to blame
3. restarting everything multiple times (and checking BIOS settings)
4. making sure another wireless device (phone) connects to the same
   router without a problem
5. making sure that wpa_supplicant does not run
6. Ethernet works fine so it is not a general networking issue
7. tried connecting with WiFiRadar, wlassistant - to no avail

None of the above makes any difference.

Has anyone encountered anything similar? Any suggestions for things I
should try?

For completeness here is ifcfg-wlan0 (asterisks mask irrelevant
identifying info):

TYPE=Wireless
DEVICE=wlan0
BOOTPROTO=dhcp
ONBOOT=yes
USERCTL=yes
IPV6INIT=no
NM_CONTROLLED=no
MODE=Managed
RATE=auto
HWADDR=**:**:**:**:**:**
KEY_MGMT=WPA-PSK
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
DHCP_HOSTNAME=**
IPV4_FAILURE_FATAL=yes
NAME=wlan0
ESSID=
CHANNEL=

I played with NM_CONTROLLED, KEY_MGMT (disabled security), and ESSID
(setting to specific value).

Thanks,

-- 
Oleg Goldshmidt | p...@goldshmidt.org

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: checking wireless cable

2011-08-18 Thread Yedidyah Bar-David
On Thu, Aug 18, 2011 at 10:02:14PM +0300, Oleg Goldshmidt wrote:
 Has anyone encountered anything similar? Any suggestions for things I
 should try?

What is the output of 'iwconfig' and of 'iwlist scanning', both as root?
I have a feeling it won't say much, but just in case.
-- 
Didi


___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: checking wireless cable

2011-08-18 Thread Oleg Goldshmidt
Yedidyah Bar-David linux...@didi.bardavid.org writes:

 On Thu, Aug 18, 2011 at 10:02:14PM +0300, Oleg Goldshmidt wrote:
 Has anyone encountered anything similar? Any suggestions for things I
 should try?

 What is the output of 'iwconfig' and of 'iwlist scanning', both as root?
 I have a feeling it won't say much, but just in case.

# iwconfig wlan0
wlan0 IEEE 802.11abgn  ESSID:off/any  
  Mode:Managed  Frequency:2.417 GHz  Access Point: Not-Associated   
  Tx-Power=15 dBm   
  Retry  long limit:7   RTS thr:off   Fragment thr:off
  Power Management:off

In the following the important part is related to ESSID=oleggw (my router):

# iwconfig scanning # non-wireless output/errors omitted
  
wlan0 Scan completed :
  Cell 01 - Address: 00:21:04:D2:EF:22
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=51/70  Signal level=-59 dBm  
Encryption key:on
ESSID:orange-6PSR
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
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=000c7003f722
Extra: Last beacon: 3232ms ago
IE: Unknown: 000B6F72616E67652D36505352
IE: Unknown: 010882848B968C129824
IE: Unknown: 030101
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
IE: Unknown: 2A0100
IE: Unknown: 3204B048606C
IE: Unknown: 
DD180050F2020101830003A427A442435E0062322F00
IE: Unknown: DD0900037F01010020FF7F
IE: Unknown: DD0A00037F040100
IE: Unknown: 
DDB00050F204104A000110104400010210570001001041000100103B00010310470010565AA94967C14C0EAA8FF349E6F593111021001B4A756E676F20536F66747761726520546563686E6F6C6F676965731023001C4F72616E676520475720506F72746120322E3020506C6174666F726D1024000B6F72616E676567772D70321042000C3030323130343031353438371054000800060050F2040001101100064F70656E5247100800020084103C000101
  Cell 02 - Address: 00:18:E7:E8:4A:4B
Channel:2
Frequency:2.417 GHz (Channel 2)
Quality=70/70  Signal level=-22 dBm  
Encryption key:on
ESSID:oleggw
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
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0207805f
Extra: Last beacon: 3228ms ago
IE: Unknown: 00066F6C65676777
IE: Unknown: 010882848B960C121824
IE: Unknown: 030102
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
IE: Unknown: 2A0100
IE: Unknown: 32043048606C
IE: Unknown: 
DD180050F2020101010003A427A442435E0062322F00
IE: Unknown: 
DD1E00904C334C101B00
IE: Unknown: 
2D1A4C101B00
IE: Unknown: 
DD1A00904C3402001B00
IE: Unknown: 
3D1602001B00
IE: Unknown: DD0900037F0101FF7F
IE: Unknown: DD0A00037F0401000400
IE: Unknown: 
DD7B0050F204104A00011010440001021041000100103B00010310470010565AA94967C14C0EAA8FF349E6F5931110210006442D4C696E6B1023000D442D4C696E6B20526F75746572102400074449522D363135104200046E6F6E651054000800060050F204000110110006442D4C696E6B100800020084103C000101
  Cell 03 - Address: 00:21:04:89:81:12
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=42/70  Signal level=-68 dBm  
Encryption key:on
ESSID:swl-u
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
  

Re: checking wireless cable

2011-08-18 Thread geoffrey mendelson


On Aug 19, 2011, at 12:21 AM, Oleg Goldshmidt wrote:


What is the output of 'iwconfig' and of 'iwlist scanning', both as  
root?

I have a feeling it won't say much, but just in case.



My guess is that you changed the region/country/jusridiction to one  
where channel 2 is not legal.


Where you just in the new world?

Geoff.

--
Geoffrey S. Mendelson,  N3OWJ/4X1GM












___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il