Skip to content

Commit

Permalink
Merge pull request #1048 from javierbrk/linkinfo
Browse files Browse the repository at this point in the history
add wifi interface name in shared state wifi information module
  • Loading branch information
ilario authored Sep 10, 2023
2 parents 44043c1 + adcb380 commit 15215fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function get_wifi_links_info()
local station_stats = node_status.get_station_stats(station)
local freq = iwinfo.nl80211.frequency(station.iface)
table.insert(links, {src_mac=src_macaddr ,dst_mac=station.station_mac,
signal=station_stats.signal,chains=station_stats.chains,
signal=station_stats.signal,chains=station_stats.chains,iface=station.iface,
rx_rate=station_stats.rx_rate,tx_rate=station_stats.tx_rate,freq=freq } )
end
return links
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ it('a simple test to get links info and assert requiered fields are present', fu
assert.is.equal("C0:4A:00:BE:7B:09", links_info[1].dst_mac)
assert.is.same({-17,-18}, links_info[1].chains)
assert.is.equal(-14, links_info[1].signal)
assert.is.equal("wlan0-mesh", links_info[1].iface)
assert.is.equal(13000, links_info[1].rx_rate)
assert.is.equal(2400, links_info[1].freq)
assert.is.equal("C0:00:00:00:00:00", links_info[1].src_mac)
Expand Down

0 comments on commit 15215fa

Please sign in to comment.