wifi_statistics: fix type detection

APs which never send any data but only transmit management frames
might falsely be reported as adhoc nodes. The fromds/tods fields
should only be considered for dataframes, so leave the type field
untouched for management frames.

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>