A way to force deassociation ? Solved !

Victor Aleo victor.aleo
Tue Nov 5 12:03:02 PST 2002


Dominique Blas wrote:

>Le Lundi 4 Novembre 2002 13:30, Victor Aleo a ?crit :
>  
>
>In fact, the function I was looking for is nearly the function 
>ap_control_kickmac but working on the list of associated stas instead of 
>authenticated stas and doing
>prism2_send_mgmt(...WLAN_FC_STYPE_DISASSOC instead of ... 
>WLAN_FC_STYPE_DEAUTH.
>  
>
I have modified the function ap_control_kickmac to disassociate a 
station instead of deauthenticate it. Thus, I just have change:

prism2_send_mgmt(...WLAN_FC_STYPE_DISASSOC instead of ... 
WLAN_FC_STYPE_DEAUTH.

I have compiled the driver again and it works. So now I can disassociate a particular station instead of all the stations (that was my goal).

There is something to note: even when the station gets the Disassociation frame it gets also afterwards (1 or 2 ms later)a Deauthentication one if it was transmitting or receiving data. The reason: I guess the hardware takes a while to process the Disassociation frame and if while this happens the station sends, for instance, an ACK to the  current AP, the current AP must deathenticate the station (as it is written in the standard).

Thanks Dominique for the insights,

Victor






More information about the Hostap mailing list