On Fri, 2012-04-20 at 15:53 -0700, greearb@xxxxxxxxxxxxxxx wrote: > + if (last_sta) { > + data[i++] = sta->sta_state; > + > + sinfo.filled = 0; > + sta_set_sinfo(last_sta, &sinfo); > + > + if (sinfo.filled | STATION_INFO_TX_BITRATE) > + data[i] = 100000 * > + cfg80211_calculate_bitrate(&sinfo.txrate); > + i++; > + if (sinfo.filled | STATION_INFO_RX_BITRATE) > + data[i] = 100000 * > + cfg80211_calculate_bitrate(&sinfo.rxrate); > + i++; > + > + if (sinfo.filled | STATION_INFO_SIGNAL_AVG) > + data[i] = (u8)sinfo.signal_avg; > + i++; I think you should leave this out unless it's in managed mode because it'll otherwise just be from a random station. 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