aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-08-10 10:22:37 (GMT)
committerJouni Malinen <j@w1.fi>2011-08-10 10:22:37 (GMT)
commit19c3b56685e138bade6b7c3c1ebab55cebb25e35 (patch)
tree62dfd18401e7a3868474d3b7c0f9df41c5f2e337 /wpa_supplicant/driver_i.h
parent5fb1a23252ca213c7c69d1bb11703e0f763f3d3e (diff)
downloadhostap-19c3b56685e138bade6b7c3c1ebab55cebb25e35.zip
hostap-19c3b56685e138bade6b7c3c1ebab55cebb25e35.tar.gz
hostap-19c3b56685e138bade6b7c3c1ebab55cebb25e35.tar.bz2
Replace set_beacon() driver op with set_ap()
This change is a first step in better supporting different driver architectures for AP mode operations with nl80211. This commit in itself does not add new functionality, but it makes it easier to add new AP mode parameters to address needs of drivers that have more of the MLME/SME in firmware or kernel.
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 8637754..79fdddd 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -320,15 +320,11 @@ static inline int wpa_drv_send_ft_action(struct wpa_supplicant *wpa_s,
return -1;
}
-static inline int wpa_drv_set_beacon(struct wpa_supplicant *wpa_s,
- const u8 *head, size_t head_len,
- const u8 *tail, size_t tail_len,
- int dtim_period, int beacon_int)
-{
- if (wpa_s->driver->set_beacon)
- return wpa_s->driver->set_beacon(wpa_s->drv_priv, head,
- head_len, tail, tail_len,
- dtim_period, beacon_int);
+static inline int wpa_drv_set_ap(struct wpa_supplicant *wpa_s,
+ struct wpa_driver_ap_params *params)
+{
+ if (wpa_s->driver->set_ap)
+ return wpa_s->driver->set_ap(wpa_s->drv_priv, params);
return -1;
}