David Rosenstrauch wrote:
Looks like scanning is just a symptom. This appears to be more the crux
of the issue:
[darose@daroselin ~]$ iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 IEEE 802.11 Nickname:""
Access Point: Not-Associated
Link Quality:5 Signal level:213 Noise level:169
Rx invalid nwid:0 invalid crypt:0 invalid misc:0
tun0 no wireless extensions.
[darose@daroselin ~]$ sudo iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 IEEE 802.11bg ESSID:"<our ap name>" Nickname:""
Mode:Managed Frequency:2.462 GHz Access Point:
00:1B:2F:0C:BD:9E
Bit Rate=54 Mb/s Tx-Power:32 dBm
Retry min limit:7 RTS thr:off Fragment thr:off
Power Managementmode:All packets received
Link Quality=5/5 Signal level=-41 dBm Noise level=-87 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:2506 Invalid misc:0 Missed beacon:0
tun0 no wireless extensions.
Not sure what's causing the discrepancy here. Something in my driver?
(Broadcom wl.) Have to look into this more ...
DR
Yeah, that's definitely the issue. strace shows this as non-root user:
ioctl(3, SIOCGIWNAME, 0x7fff32cf97f0) = 0
ioctl(3, SIOCGIWNWID, 0x7fff32cf97f0) = -1 EOPNOTSUPP (Operation not
supported)
ioctl(3, SIOCGIWFREQ, 0x7fff32cf97f0) = -1 EPERM (Operation not permitted)
ioctl(3, SIOCGIWENCODE, 0x7fff32cf97f0) = -1 EPERM (Operation not permitted)
ioctl(3, SIOCGIWESSID, 0x7fff32cf97f0) = -1 EPERM (Operation not permitted)
ioctl(3, SIOCGIWMODE, 0x7fff32cf97f0) = -1 EPERM (Operation not permitted)
ioctl(3, SIOCGIWRANGE, 0x7fff32cf97f0) = -1 EPERM (Operation not permitted)
ioctl(3, SIOCGIWAP, 0x7fff32cf9ce0) = 0
ioctl(3, SIOCGIWRATE, 0x7fff32cf9ce0) = -1 EPERM (Operation not permitted)
ioctl(3, SIOCGIWPOWER, 0x7fff32cf9ce0) = -1 EPERM (Operation not permitted)
vs. this for root:
ioctl(3, SIOCGIWNAME, 0x7fffa84a1690) = 0
ioctl(3, SIOCGIWNWID, 0x7fffa84a1690) = -1 EOPNOTSUPP (Operation not
supported)
ioctl(3, SIOCGIWFREQ, 0x7fffa84a1690) = 0
ioctl(3, SIOCGIWENCODE, 0x7fffa84a1690) = -1 EOPNOTSUPP (Operation not
supported)
ioctl(3, SIOCGIWESSID, 0x7fffa84a1690) = 0
ioctl(3, SIOCGIWMODE, 0x7fffa84a1690) = 0
ioctl(3, SIOCGIWRANGE, 0x7fffa84a1690) = 0
ioctl(3, SIOCGIWAP, 0x7fffa84a1b80) = 0
ioctl(3, SIOCGIWRATE, 0x7fffa84a1b80) = 0
ioctl(3, SIOCGIWPOWER, 0x7fffa84a1b80) = 0
ioctl(3, SIOCGIWSTATS, 0x7fffa84a1670) = 0
ioctl(3, SIOCGIWNICKN, 0x7fffa84a1b80) = 0
ioctl(3, SIOCGIWTXPOW, 0x7fffa84a1b80) = 0
ioctl(3, SIOCGIWSENS, 0x7fffa84a1b80) = -1 EOPNOTSUPP (Operation not
supported)
ioctl(3, SIOCGIWRETRY, 0x7fffa84a1b80) = 0
ioctl(3, SIOCGIWRTS, 0x7fffa84a1b80) = 0
ioctl(3, SIOCGIWFRAG, 0x7fffa84a1b80) = 0
Not sure what's causing the permission errors, though. (Don't know
enough about linux wireless.) Off to do more digging ...
DR