> We do need a qual.level for adhoc though. Hmm, I don't have really knowledge about ADHOC. If it is only > We should be reporting 100% signal strength there or something. then the code for this would probably be something like if ((priv->mode == IW_MODE_ADHOC) && priv->adhoccreate && !lbs_ssid_cmp(priv->curbssparams.ssid, priv->curbssparams.ssid_len, bss->ssid, bss->ssid_len)) { iwe.u.qual.level = 100; } If you think about something different or more complex, it would be cool if you could help me a bit more :-) > Second, we really should be reporting the noise for scan > results, _not_ the default noise value. We certainly can get > the noise results averaged from past beacons, providing those > beacons are recent. That was probably the intent of the > beacon averaging stuff. I might have been a bit too hasty in > suggesting its removal. We don't have a noise value for scan results. There is only an RSSI field in the scan result. Yes, the GET_RSSI command would give us the noise of received baecon. *BUT* only for the beacons from the current associated access point. This has two problems: * we might not be associated to an AP * the noise level reported from an associated AP at channel 1 might be very wrong to report the noise level of a scanned AP on channel 13. Using averaged noise is useless for other reasons: * in the case of a moving station the driver doesn't know if the old data that is used for the average is from the same location or if the device moved * the age of the averaged data has not been taken into account. * and here again driver ignored the fact that noise can be different on different channels. So if we don't (1) have noise value for scanning, (2) can't really average it and (3) you don't to report a default value, then we can simply turn of the reporting of the noise: - iwe.u.qual.updated = IW_QUAL_ALL_UPDATED; + iwe.u.qual.updated = IW_QUAL_QUAL_UPDATED | + IW_QUAL_LEVEL_UPDATED; "iwlist eth1 scan" then no longer reports the noise. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html