Jump to content

programmatically shutting down open AP


Recommended Posts

Hi, everyone!

I'm playing back again with the Nano I purchased several years ago, running on firmware 2.7.0.

In my attack vector, I need to be able to shut down the open access point programmatically.

I tried

uci set wireless@wifi-iface[0].disabled='1'
uci commit wireless

#also tried
uci set wireless@wifi-iface[0].disabled=1
uci commit wireless

#also tried
uci set wireless@wifi-iface[1].disabled='1'
uci commit wireless

#also tried
uci set wireless@wifi-iface[1].disabled=1
uci commit wireless

 

But neither of those commands seemed to shut down the open AP or the management AP.

So, my questions are:

  1. @wifi-iface[0] stands for the management AP or the open AP?
  2. @wifi-iface[1] stands for the management AP or the open AP?
  3. How can I programmaticaly (from bash, php or even better by python) shut down the open access point?

Best regards

Link to comment
Share on other sites

Thank you SO much for answering this fast, @dark_pyrro!

The missing dot (.) was indeed a typo in my post, so sorry for that.

This worked for me:

uci set wireless.@wifi-iface[0].disabled='1'
uci commit wireless
wifi reload
wifi

Do you know if the service network reload andthe uci commit network are mandatory, and if so, could you please explain why?

Thanks sincerely =D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...