Skip to content

Commit

Permalink
Prevent unnecessary options in wifi-iface
Browse files Browse the repository at this point in the history
Do not add "option distance ..." to wifi-iface config sections (It
belongs to wifi-device sections). Do not add "unstuck_interval"
and "unstuck_timeout".
  • Loading branch information
pony1k committed Feb 1, 2024
1 parent f8d54f2 commit 4c83806
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/lime-system/files/usr/lib/lua/lime/wireless.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ function wireless.configure()
and (not key:match("legacy_rates"))
and (not key:match("txpower"))
and (not key:match("htmode"))
and (not key:match("distance"))
and (not key:match("unstuck_interval"))
and (not key:match("unstuck_timeout"))
and (not (wireless.isMode(keyPrefix) and keyPrefix ~= modeName)))
if isGoodOption then
local nk = key:gsub("^"..modeName.."_", "")
Expand Down

0 comments on commit 4c83806

Please sign in to comment.