Changeset 17822
- Timestamp:
- 10/30/11 11:15:11 (19 months ago)
- File:
-
- 1 edited
-
src/router/hostapd-wps/src/ap/ieee802_11.c (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/hostapd-wps/src/ap/ieee802_11.c
r17239 r17822 371 371 372 372 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.auth)) { 373 printf("handle_auth - too short payload (len=%lu)\n",373 wpa_printf(MSG_DEBUG, "handle_auth - too short payload (len=%lu)\n", 374 374 (unsigned long) len); 375 375 return; … … 408 408 ((hapd->conf->auth_algs & WPA_AUTH_ALG_SHARED) && 409 409 auth_alg == WLAN_AUTH_SHARED_KEY))) { 410 printf("Unsupported authentication algorithm (%d)\n",410 wpa_printf(MSG_DEBUG,"Unsupported authentication algorithm (%d)\n", 411 411 auth_alg); 412 412 resp = WLAN_STATUS_NOT_SUPPORTED_AUTH_ALG; … … 416 416 if (!(auth_transaction == 1 || 417 417 (auth_alg == WLAN_AUTH_SHARED_KEY && auth_transaction == 3))) { 418 printf("Unknown authentication transaction number (%d)\n",418 wpa_printf(MSG_DEBUG,"Unknown authentication transaction number (%d)\n", 419 419 auth_transaction); 420 420 resp = WLAN_STATUS_UNKNOWN_AUTH_TRANSACTION; … … 423 423 424 424 if (os_memcmp(mgmt->sa, hapd->own_addr, ETH_ALEN) == 0) { 425 printf("Station " MACSTR " not allowed to authenticate.\n",425 wpa_printf(MSG_DEBUG,"Station " MACSTR " not allowed to authenticate.\n", 426 426 MAC2STR(mgmt->sa)); 427 427 resp = WLAN_STATUS_UNSPECIFIED_FAILURE; … … 433 433 &acct_interim_interval, &vlan_id); 434 434 if (res == HOSTAPD_ACL_REJECT) { 435 printf("Station " MACSTR " not allowed to authenticate.\n",435 wpa_printf(MSG_DEBUG,"Station " MACSTR " not allowed to authenticate.\n", 436 436 MAC2STR(mgmt->sa)); 437 437 resp = WLAN_STATUS_UNSPECIFIED_FAILURE; … … 978 978 if (len < IEEE80211_HDRLEN + (reassoc ? sizeof(mgmt->u.reassoc_req) : 979 979 sizeof(mgmt->u.assoc_req))) { 980 printf("handle_assoc(reassoc=%d) - too short payload (len=%lu)"980 wpa_printf(MSG_DEBUG,"handle_assoc(reassoc=%d) - too short payload (len=%lu)" 981 981 "\n", reassoc, (unsigned long) len); 982 982 return; … … 1145 1145 1146 1146 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.disassoc)) { 1147 printf("handle_disassoc - too short payload (len=%lu)\n",1147 wpa_printf(MSG_DEBUG,"handle_disassoc - too short payload (len=%lu)\n", 1148 1148 (unsigned long) len); 1149 1149 return; … … 1156 1156 sta = ap_get_sta(hapd, mgmt->sa); 1157 1157 if (sta == NULL) { 1158 printf("Station " MACSTR " trying to disassociate, but it "1158 wpa_printf(MSG_DEBUG,"Station " MACSTR " trying to disassociate, but it " 1159 1159 "is not associated.\n", MAC2STR(mgmt->sa)); 1160 1160 return; … … 1233 1233 1234 1234 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.beacon)) { 1235 printf("handle_beacon - too short payload (len=%lu)\n",1235 wpa_printf(MSG_DEBUG,"handle_beacon - too short payload (len=%lu)\n", 1236 1236 (unsigned long) len); 1237 1237 return; … … 1530 1530 if (!broadcast && 1531 1531 os_memcmp(mgmt->bssid, hapd->own_addr, ETH_ALEN) != 0) { 1532 printf("MGMT: BSSID=" MACSTR " not our address\n",1532 wpa_printf(MSG_DEBUG,"MGMT: BSSID=" MACSTR " not our address\n", 1533 1533 MAC2STR(mgmt->bssid)); 1534 1534 return; … … 1598 1598 1599 1599 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.auth)) { 1600 printf("handle_auth_cb - too short payload (len=%lu)\n",1600 wpa_printf(MSG_DEBUG,"handle_auth_cb - too short payload (len=%lu)\n", 1601 1601 (unsigned long) len); 1602 1602 return; … … 1609 1609 sta = ap_get_sta(hapd, mgmt->da); 1610 1610 if (!sta) { 1611 printf("handle_auth_cb: STA " MACSTR " not found\n",1611 wpa_printf(MSG_DEBUG,"handle_auth_cb: STA " MACSTR " not found\n", 1612 1612 MAC2STR(mgmt->da)); 1613 1613 return; … … 1635 1635 if (len < IEEE80211_HDRLEN + (reassoc ? sizeof(mgmt->u.reassoc_resp) : 1636 1636 sizeof(mgmt->u.assoc_resp))) { 1637 printf("handle_assoc_cb(reassoc=%d) - too short payload "1637 wpa_printf(MSG_DEBUG,"handle_assoc_cb(reassoc=%d) - too short payload " 1638 1638 "(len=%lu)\n", reassoc, (unsigned long) len); 1639 1639 return; … … 1642 1642 sta = ap_get_sta(hapd, mgmt->da); 1643 1643 if (!sta) { 1644 printf("handle_assoc_cb: STA " MACSTR " not found\n",1644 wpa_printf(MSG_DEBUG,"handle_assoc_cb: STA " MACSTR " not found\n", 1645 1645 MAC2STR(mgmt->da)); 1646 1646 return; … … 1790 1790 break; 1791 1791 default: 1792 printf("unknown mgmt cb frame subtype %d\n", stype);1792 wpa_printf(MSG_DEBUG,"unknown mgmt cb frame subtype %d\n", stype); 1793 1793 break; 1794 1794 }
Note: See TracChangeset
for help on using the changeset viewer.
