Bartosz Markowski <bartosz.markowski@xxxxxxxxx> writes: > The WMI_REQUEST_PEER_STAT command with latst (1.0.0.716) FW > can return per-VDEV statistics. Using debugfs we can fetch this info now. > > This is a backward compatible change. In case of older FW the VDEV > statistics are simply not returned. > > Signed-off-by: Bartosz Markowski <bartosz.markowski@xxxxxxxxx> [...] > for (i = 0; i < num_peer_stats; i++) { > - peer_stats = (struct wmi_peer_stats *)tmp; > + peer_stats = (struct wmi_peer_stats_1 *)tmp; Oh yeah, you assume here that _v2 struct starts with _v1. That's a bit dangerous, at least add a comment here saying that. -- Kalle Valo -- 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