software/drivers/sd8887/src/wlan/mlan/mlan_uap_cmdevent.c
/**
 *  @brief This function will return the pointer to station entry in station list
 *          table which matches the give mac address
 *
 *  @param priv    A pointer to mlan_private
 *
 *  @return	   A pointer to structure sta_node
 */
@brief This function will return the pointer to station entry in station list
table which matches the give mac address

@param priv    A pointer to mlan_private

@return        A pointer to structure sta_node
@brief This function will return the pointer to station entry in station list table which matches the give mac address @param priv A pointer to mlan_private @return A pointer to structure sta_node
void
wlan_notify_station_deauth(mlan_private *priv)
{
	sta_node *sta_ptr;
	t_u8 event_buf[100];
	mlan_event *pevent = (mlan_event *)event_buf;
	t_u8 *pbuf;
	ENTER();
	sta_ptr = (sta_node *)util_peek_list(priv->adapter->pmoal_handle,
					     &priv->sta_list,
					     priv->adapter->callbacks.
					     moal_spin_lock,
					     priv->adapter->callbacks.
					     moal_spin_unlock);
	if (!sta_ptr) {
		LEAVE();
		return;
	}
	while (sta_ptr != (sta_node *)&priv->sta_list) {
		memset(priv->adapter, event_buf, 0, sizeof(event_buf));
		pevent->bss_index = priv->bss_index;
		pevent->event_id = MLAN_EVENT_ID_UAP_FW_STA_DISCONNECT;
		pevent->event_len = MLAN_MAC_ADDR_LENGTH + 2;
		pbuf = (t_u8 *)pevent->event_buf;
		memcpy(priv->adapter, pbuf + 2, sta_ptr->mac_addr,
		       MLAN_MAC_ADDR_LENGTH);
		wlan_recv_event(priv, pevent->event_id, pevent);
		sta_ptr = sta_ptr->pnext;
	}
	LEAVE();
	return;
}
void wlan_notify_station_deauth ( mlan_private * priv ) { sta_node * sta_ptr ; t_u8 event_buf [ 100 ] ; mlan_event * pevent = ( mlan_event * ) event_buf ; t_u8 * pbuf ; ENTER ( ) ; sta_ptr = ( sta_node * ) util_peek_list ( priv -> adapter -> pmoal_handle , & priv -> sta_list , priv -> adapter -> callbacks . moal_spin_lock , priv -> adapter -> callbacks . moal_spin_unlock ) ; if ( ! sta_ptr ) { LEAVE ( ) ; return ; } while ( sta_ptr != ( sta_node * ) & priv -> sta_list ) { memset ( priv -> adapter , event_buf , 0 , sizeof ( event_buf ) ) ; pevent -> bss_index = priv -> bss_index ; pevent -> event_id = MLAN_EVENT_ID_UAP_FW_STA_DISCONNECT ; pevent -> event_len = MLAN_MAC_ADDR_LENGTH + 2 ; pbuf = ( t_u8 * ) pevent -> event_buf ; memcpy ( priv -> adapter , pbuf + 2 , sta_ptr -> mac_addr , MLAN_MAC_ADDR_LENGTH ) ; wlan_recv_event ( priv , pevent -> event_id , pevent ) ; sta_ptr = sta_ptr -> pnext ; } LEAVE ( ) ; return ; }
@brief This function will return the pointer to station entry in station list
          table which matches the give mac address
@brief This function will return the pointer to station entry in station list table which matches the give mac address
/* reason field set to 0, Unspecified */