This commit is contained in:
vemax78
2015-01-24 13:14:05 +01:00
11 changed files with 45 additions and 17 deletions

View File

@ -1559,7 +1559,7 @@ uint16_t wifi_wlan_check_capability(struct wifi_wlan* wlan, uint16_t capability)
result &= ~IEEE80211_CAPABILITY_SHORTSLOTTIME;
}
return capability;
return result;
}
/* */

View File

@ -1663,7 +1663,7 @@ static wifi_global_handle nl80211_global_init(void) {
/* Add membership regulatory events */
result = nl80211_get_multicast_id(globalhandle, "nl80211", "regulatory");
if (result >= 0) {
result = nl_socket_add_membership(globalhandle->nl_event, result);
nl_socket_add_membership(globalhandle->nl_event, result);
}
/* Get nl80211 netlink family */

View File

@ -379,10 +379,8 @@ int wtp_dfa_running(void) {
/* Check is handshake complete */
if ((oldaction == CAPWAP_DTLS_ACTION_HANDSHAKE) && (g_wtp.dtls.action == CAPWAP_DTLS_ACTION_DATA)) {
if (g_wtp.state == CAPWAP_DTLS_CONNECT_STATE) {
check = CAPWAP_NONE_PACKET;
wtp_send_join();
} else {
check = CAPWAP_WRONG_PACKET;
wtp_teardown_connection();
}
}

View File

@ -68,7 +68,7 @@ void wtp_dfa_state_discovery_timeout(struct capwap_timeout* timeout, unsigned lo
}
/* AC with IPv6 */
if ((g_wtp.net.localaddr.ss.ss_family == AF_INET6)) {
if (g_wtp.net.localaddr.ss.ss_family == AF_INET6) {
for (w = 0; w < response->controlipv6->count; w++) {
struct capwap_controlipv6_element* controlipv6 = (struct capwap_controlipv6_element*)capwap_array_get_item_pointer(response->controlipv6, w);