Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf998f68 authored by Emmanuel Grumbach's avatar Emmanuel Grumbach Committed by John W. Linville
Browse files

mac80211: add last beacon time in scan list



This patch adds the interval between the scan results and the last time a
beacon was received in the result of the scan.

Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 06ff47bc
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -4340,6 +4340,13 @@ ieee80211_sta_scan_result(struct net_device *dev,
			current_ev = iwe_stream_add_point(info, current_ev,
							  end_buf,
							  &iwe, buf);
			memset(&iwe, 0, sizeof(iwe));
			iwe.cmd = IWEVCUSTOM;
			sprintf(buf, " Last beacon: %dms ago",
				jiffies_to_msecs(jiffies - bss->last_update));
			iwe.u.data.length = strlen(buf);
			current_ev = iwe_stream_add_point(info, current_ev,
							  end_buf, &iwe, buf);
			kfree(buf);
		}
	}