2
0
mirror of https://github.com/koreader/koreader synced 2024-11-04 12:00:25 +00:00

NetworkInfo: Never show the token index

Now that I've seen it in action on a device, it's mostly useless, and,
if anything, confusing, because it's not static.
This commit is contained in:
NiLuJe 2023-07-23 01:01:19 +02:00
parent d087710140
commit f5e871d4ed

View File

@ -792,12 +792,16 @@ function Device:retrieveNetworkInfo()
else
local essid_on = iwr.u.data.flags
if essid_on ~= 0 then
-- Knowing the token index may be fun, bit it isn't in fact, super interesting...
--[[
local token_index = bit.band(essid_on, C.IW_ENCODE_INDEX)
if token_index > 1 then
table.insert(results, T(_("SSID: \"%1\" [%2]"), ffi.string(essid), token_index))
else
table.insert(results, T(_("SSID: \"%1\""), ffi.string(essid)))
end
--]]
table.insert(results, T(_("SSID: \"%1\""), ffi.string(essid)))
else
table.insert(results, _("SSID: off/any"))
end