Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ironpillow/ed7798f31f913feff2606e3f04559075 to your computer and use it in GitHub Desktop.
Save ironpillow/ed7798f31f913feff2606e3f04559075 to your computer and use it in GitHub Desktop.
iw-info-not-showing-80211s-properly.lua
local iwinfo = require("iwinfo")
networks = iwinfo.wext.scanlist("wlan0")
--[[
...
{
bssid = "C0:61:18:FB:B0:A0",
channel = 11,
encryption = {
auth_algs = { }, auth_suites = { }, description = "None"
enabled = false, group_ciphers = { }, pair_ciphers = { }
wep = false, wpa = 0
}
mode = "Unknown"
quality = 46,
quality_max = 70,
signal = -64,
ssid = "LiMe"
}
...
]]--
--[[
root@LEDE:~# iwinfo wlan0 scan
...
Cell 04 - Address: C0:61:18:FB:B0:A0
ESSID: unknown
Mode: Mesh Point Channel: 11
Signal: -61 dBm Quality: 49/70
Encryption: none
...
--]]--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment