Skip to content

Commit

Permalink
fix p2p
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Oct 26, 2023
1 parent 812742a commit 4cd5b9c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ uci:foreach('wireless', 'wifi-device', function(config)
-- could be handeled dynamically. a toggle to switch between p2p and mesh if driver supports it.
local vif = vif_option('p2p', {'p2p'}, translate('Enable point-to-point (AP/STA) mesh'))
if vif then
vif.default = is_60gz

local name6 = 'p2p_' .. radio

vif.default = not uci:get_bool('wireless', name6, 'disabled')

local id = p:option(Value, radio .. '_p2pid', translate('SSID'))
id.datatype = "maxlength(32)"
id.default = uci:get('wireless', name6, 'ssid') or 'g-' .. string.sub(string.gsub(sysconfig.primary_mac, ':', ''), 8)
Expand Down

0 comments on commit 4cd5b9c

Please sign in to comment.