On 2010-01-17 9:48 PM, Johannes Berg wrote: > On Sun, 2010-01-17 at 21:23 +0100, Felix Fietkau wrote: > >> I want to be able to have some status info without having to go >> through >> hostapd or wpa_supplicant to get it. Currently the channel is exported >> by wext, but not nl80211, so I want to fix that. > > But like I said, you already have that information in the relevant > cases. hostapd you can just look in the config file for it... Nope, hostapd can deviate from the config, e.g. in the HT40 case. It'll switch primary and secondary channel, if necessary, or switch from HT40 to HT20 entirely if there are overlapping BSSs. And what about STA mode? The channel won't be in the config in that case. > The problem with this is that not all drivers will be able to support > it, and that you will be exporting stale information say in the case > where we're not connected at all. If we document the exported channel for the netdev as 'last configured channel', it should be fine, IMHO. - Felix -- 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