API to disconnect station from AP
API to disconnect station from AP
Postby Anki » Fri Feb 12, 2016 1:34 am
Is there any API that for an ESP8266 operation in softap mode to force an individual station to disconnect? For my application, I need to be able to force individual stations off the softap without disconnecting other stations.
-
- Posts: 1
- Joined: Tue Apr 04, 2017 12:12 pm
Re: API to disconnect station from AP
Postby techknowpro » Tue Apr 04, 2017 12:13 pm
I need this same functionality. Does anyone have an answer to this yet?
-
- Posts: 195
- Joined: Sat Apr 01, 2017 1:21 am
- Contact:
Re: API to disconnect station from AP
Postby AgentSmithers » Thu Apr 06, 2017 8:06 pm
Hi Guys,
The correct way to do this from an AccessPoint would be to have the AP send a DeAuth packet to the station then reject it rejoining.
The Packet is described here.
https://mrncciew.com/2014/10/11/802-11- ... on-frames/
One way to do it is to call the API "wifi_send_pkt_freedom" after constructing a DeAuth packet. However, after version 1.3 SDK they have then since stopped allowing Management Frame Packet types to be created through that API and you must now rely on the SDK you are on to implement the specific API to construct such a management frame packet.
What more specifically are you trying to accomplish and I can do my best to help guide you in doing that without dealing with the 802.11 frames but perhaps handing it at the Layer 2 Datalink / Layer 3 Network level. But if you are trying to strictly DeAuth I am unaware of such a way at this time sadly.
The correct way to do this from an AccessPoint would be to have the AP send a DeAuth packet to the station then reject it rejoining.
The Packet is described here.
https://mrncciew.com/2014/10/11/802-11- ... on-frames/
One way to do it is to call the API "wifi_send_pkt_freedom" after constructing a DeAuth packet. However, after version 1.3 SDK they have then since stopped allowing Management Frame Packet types to be created through that API and you must now rely on the SDK you are on to implement the specific API to construct such a management frame packet.
What more specifically are you trying to accomplish and I can do my best to help guide you in doing that without dealing with the 802.11 frames but perhaps handing it at the Layer 2 Datalink / Layer 3 Network level. But if you are trying to strictly DeAuth I am unaware of such a way at this time sadly.
Who is online
Users browsing this forum: No registered users and 328 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.