Added the ability to manage timeouts inside the wireless module
This commit is contained in:
parent
738a5d9c93
commit
684a829158
@ -99,6 +99,8 @@ struct wlan_startap_params {
|
||||
send_mgmtframe_to_ac send_mgmtframe;
|
||||
void* send_mgmtframe_to_ac_cbparam;
|
||||
|
||||
struct capwap_timeout* timeout;
|
||||
|
||||
const char* ssid;
|
||||
uint8_t ssid_hidden;
|
||||
uint16_t capability;
|
||||
|
@ -2361,6 +2361,7 @@ static int nl80211_wlan_startap(wifi_wlan_handle handle, struct wlan_startap_par
|
||||
wlanhandle->tunnelmode = params->tunnelmode;
|
||||
wlanhandle->send_mgmtframe = params->send_mgmtframe;
|
||||
wlanhandle->send_mgmtframe_to_ac_cbparam = params->send_mgmtframe_to_ac_cbparam;
|
||||
wlanhandle->timeout = params->timeout;
|
||||
|
||||
/* Set beacon */
|
||||
if (nl80211_wlan_setbeacon(wlanhandle)) {
|
||||
|
@ -100,6 +100,9 @@ struct nl80211_wlan_handle {
|
||||
send_mgmtframe_to_ac send_mgmtframe;
|
||||
void* send_mgmtframe_to_ac_cbparam;
|
||||
|
||||
/* */
|
||||
struct capwap_timeout* timeout;
|
||||
|
||||
/* WLAN information */
|
||||
char ssid[WIFI_SSID_MAX_LENGTH + 1];
|
||||
uint8_t ssid_hidden;
|
||||
@ -144,6 +147,9 @@ struct nl80211_virtdevice_item {
|
||||
struct nl80211_station {
|
||||
unsigned long flags;
|
||||
|
||||
/* Timers */
|
||||
unsigned long idtimeout;
|
||||
|
||||
/* */
|
||||
uint16_t capability;
|
||||
uint16_t listeninterval;
|
||||
|
@ -634,6 +634,7 @@ uint32_t wtp_radio_create_wlan(struct capwap_parsed_packet* packet, struct capwa
|
||||
memset(¶ms, 0, sizeof(struct wlan_startap_params));
|
||||
params.send_mgmtframe = wtp_radio_send_mgmtframe_to_ac;
|
||||
params.send_mgmtframe_to_ac_cbparam = (void*)wlan;
|
||||
params.timeout = g_wtp.timeout;
|
||||
params.ssid = (const char*)addwlan->ssid;
|
||||
params.ssid_hidden = addwlan->suppressssid;
|
||||
params.capability = addwlan->capability;
|
||||
|
Loading…
Reference in New Issue
Block a user