Browse Source

Add hostapd_drv_send_action()

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Jay Katabathuni 13 years ago
parent
commit
fb80e86e7d
2 changed files with 15 additions and 0 deletions
  1. 12 0
      src/ap/ap_drv_ops.c
  2. 3 0
      src/ap/ap_drv_ops.h

+ 12 - 0
src/ap/ap_drv_ops.c

@@ -584,3 +584,15 @@ int hostapd_drv_sta_disassoc(struct hostapd_data *hapd,
 	return hapd->driver->sta_disassoc(hapd->drv_priv, hapd->own_addr, addr,
 					  reason);
 }
+
+
+int hostapd_drv_send_action(struct hostapd_data *hapd, unsigned int freq,
+			    unsigned int wait, const u8 *dst, const u8 *data,
+			    size_t len)
+{
+	if (hapd->driver == NULL || hapd->driver->send_action == NULL)
+		return 0;
+	return hapd->driver->send_action(hapd->drv_priv, freq, wait, dst,
+					 hapd->own_addr, hapd->own_addr, data,
+					 len, 0);
+}

+ 3 - 0
src/ap/ap_drv_ops.h

@@ -86,6 +86,9 @@ int hostapd_drv_sta_deauth(struct hostapd_data *hapd,
 			   const u8 *addr, int reason);
 int hostapd_drv_sta_disassoc(struct hostapd_data *hapd,
 			     const u8 *addr, int reason);
+int hostapd_drv_send_action(struct hostapd_data *hapd, unsigned int freq,
+			    unsigned int wait, const u8 *dst, const u8 *data,
+			    size_t len);
 int hostapd_add_sta_node(struct hostapd_data *hapd, const u8 *addr,
 			 u16 auth_alg);
 int hostapd_sta_auth(struct hostapd_data *hapd, const u8 *addr,