Changeset 17822


Ignore:
Timestamp:
10/30/11 11:15:11 (19 months ago)
Author:
BrainSlayer
Message:

inconsistent behavoir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/hostapd-wps/src/ap/ieee802_11.c

    r17239 r17822  
    371371 
    372372        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", 
    374374                       (unsigned long) len); 
    375375                return; 
     
    408408              ((hapd->conf->auth_algs & WPA_AUTH_ALG_SHARED) && 
    409409               auth_alg == WLAN_AUTH_SHARED_KEY))) { 
    410                 printf("Unsupported authentication algorithm (%d)\n", 
     410                wpa_printf(MSG_DEBUG,"Unsupported authentication algorithm (%d)\n", 
    411411                       auth_alg); 
    412412                resp = WLAN_STATUS_NOT_SUPPORTED_AUTH_ALG; 
     
    416416        if (!(auth_transaction == 1 || 
    417417              (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", 
    419419                       auth_transaction); 
    420420                resp = WLAN_STATUS_UNKNOWN_AUTH_TRANSACTION; 
     
    423423 
    424424        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", 
    426426                       MAC2STR(mgmt->sa)); 
    427427                resp = WLAN_STATUS_UNSPECIFIED_FAILURE; 
     
    433433                                      &acct_interim_interval, &vlan_id); 
    434434        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", 
    436436                       MAC2STR(mgmt->sa)); 
    437437                resp = WLAN_STATUS_UNSPECIFIED_FAILURE; 
     
    978978        if (len < IEEE80211_HDRLEN + (reassoc ? sizeof(mgmt->u.reassoc_req) : 
    979979                                      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)" 
    981981                       "\n", reassoc, (unsigned long) len); 
    982982                return; 
     
    11451145 
    11461146        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", 
    11481148                       (unsigned long) len); 
    11491149                return; 
     
    11561156        sta = ap_get_sta(hapd, mgmt->sa); 
    11571157        if (sta == NULL) { 
    1158                 printf("Station " MACSTR " trying to disassociate, but it " 
     1158                wpa_printf(MSG_DEBUG,"Station " MACSTR " trying to disassociate, but it " 
    11591159                       "is not associated.\n", MAC2STR(mgmt->sa)); 
    11601160                return; 
     
    12331233 
    12341234        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", 
    12361236                       (unsigned long) len); 
    12371237                return; 
     
    15301530        if (!broadcast && 
    15311531            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", 
    15331533                       MAC2STR(mgmt->bssid)); 
    15341534                return; 
     
    15981598 
    15991599        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", 
    16011601                       (unsigned long) len); 
    16021602                return; 
     
    16091609        sta = ap_get_sta(hapd, mgmt->da); 
    16101610        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", 
    16121612                       MAC2STR(mgmt->da)); 
    16131613                return; 
     
    16351635        if (len < IEEE80211_HDRLEN + (reassoc ? sizeof(mgmt->u.reassoc_resp) : 
    16361636                                      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 " 
    16381638                       "(len=%lu)\n", reassoc, (unsigned long) len); 
    16391639                return; 
     
    16421642        sta = ap_get_sta(hapd, mgmt->da); 
    16431643        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", 
    16451645                       MAC2STR(mgmt->da)); 
    16461646                return; 
     
    17901790                break; 
    17911791        default: 
    1792                 printf("unknown mgmt cb frame subtype %d\n", stype); 
     1792                wpa_printf(MSG_DEBUG,"unknown mgmt cb frame subtype %d\n", stype); 
    17931793                break; 
    17941794        } 
Note: See TracChangeset for help on using the changeset viewer.