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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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