Skip to content

Commit

Permalink
schema: fix AP platform detection
Browse files Browse the repository at this point in the history
Signed-off-by: John Crispin <[email protected]>
  • Loading branch information
blogic committed Jun 8, 2021
1 parent afbb3d6 commit 9c2e2c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/capabilities.uc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ boardfile.close();

capa = {};
ctx = ubus.connect();
let wifi = ctx.call("wifi", "phy");
capa.compatible = replace(board.model.id, ',', '_');
capa.model = board.model.name;

Expand All @@ -32,7 +33,6 @@ for (let k, v in board.network) {

if (board.switch)
capa.switch = board.switch;
wifi = ctx.call("wifi", "phy");
if (length(wifi))
capa.wifi = wifi;

Expand Down

0 comments on commit 9c2e2c5

Please sign in to comment.