On Fri, 2013-02-15 at 18:19 +0100, Simon Wunderlich wrote: > Commands we would like to propose are: > * start collecting - this feature should not run by default to avoid bloating memory for users who > don't even need this > * stop collecting > * read - dumps the data for all stations > * read + reset - dump the data and reset information for all stations. This should also clean up stations, > at least those which are not connected to the BSS, to not bloat the station table. > > I guess the right position to implement this is mac80211 receive path. Our intended platform > is ath9k/ath5k, but that feature should work with any mac80211 driver. We don't care if sta_info > structs are allocated or custom structures are used, as long as we can receive a list of stations > which includes peer and non-peer stations, along with their statistics. > > We are looking forward to your thoughts. :) I would argue that since most of the sta_info struct is used for operational stuff, you shouldn't use it, but have a separate struct and maybe embed that separate struct in sta_info for its statistics. I'd also not use the existing nl80211 station APIs since this could be an optional feature for many things, and it will likely break existing expectations, e.g. that all stations listed by "iw wlan0 station dump" are clients connected to an AP interface. It could be argued that this API then should also not even include the connected stations when listing ones, i.e. explicitly be non-connected stations. johannes -- 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