|
@@ -19,6 +19,7 @@
|
|
|
#include "main.h"
|
|
|
|
|
|
#include <linux/atomic.h>
|
|
|
+#include <linux/bitops.h>
|
|
|
#include <linux/byteorder/generic.h>
|
|
|
#include <linux/errno.h>
|
|
|
#include <linux/etherdevice.h>
|
|
@@ -29,6 +30,7 @@
|
|
|
#include <linux/kernel.h>
|
|
|
#include <linux/kref.h>
|
|
|
#include <linux/netdevice.h>
|
|
|
+#include <linux/nl80211.h>
|
|
|
#include <linux/random.h>
|
|
|
#include <linux/rculist.h>
|
|
|
#include <linux/rcupdate.h>
|
|
@@ -111,6 +113,8 @@ static u32 batadv_v_elp_get_throughput(struct batadv_hardif_neigh_node *neigh)
|
|
|
}
|
|
|
if (ret)
|
|
|
goto default_throughput;
|
|
|
+ if (!(sinfo.filled & BIT(NL80211_STA_INFO_EXPECTED_THROUGHPUT)))
|
|
|
+ goto default_throughput;
|
|
|
|
|
|
return sinfo.expected_throughput / 100;
|
|
|
}
|