<p>To reproduce, first comment out this erroneous line (<a href="https://github.com/opentechinstitute/luci-commotion/issues/34#issuecomment-26725988" class="issue-link" title="changing profile results in LuCI error ">#34 (comment)</a>) and restart uhttpd/clear cache.</p>

<p>Then try to apply a profile to the plug interface. Here is the error:</p>

<p>/usr/lib/lua/luci/dispatcher.lua:448: Failed to execute call dispatcher target for entry '/admin/commotion/meshprofile_submit'.<br>
The called action terminated with an exception:<br>
...sr/lib/lua/luci/controller/commotion/meshprofile.lua:295: bad argument <a href="https://github.com/opentechinstitute/luci-commotion/pull/2" class="issue-link" title="added functions to commotions_helper, removed references to luci-splash">#2</a> to 'delete' (string expected, got nil)<br>
stack traceback:<br>
    [C]: in function 'assert'<br>
    /usr/lib/lua/luci/dispatcher.lua:448: in function 'dispatch'<br>
    /usr/lib/lua/luci/dispatcher.lua:195: in function </p>

<p>In the code, it looks like the <code>flush_wireless_profile</code> function is called (line 68) for every interface profile change, regardless if it is a wireless interface or not.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/opentechinstitute/luci-commotion/issues/35'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/HSS0tS4nfORw_XnPQF8f0e23n48ngMATd04psZqmUazvhahadUvT30Xkoud0e9V3.gif' height='1' width='1'></p>