Added some debug code for the zero addresses in STA mode problem.

This commit is contained in:
mark 2000-02-07 01:52:33 +00:00
parent e495a2c98b
commit 5bddc8a1c5
1 changed files with 13 additions and 4 deletions

View File

@ -131,7 +131,10 @@ int p80211pb_ether_to_p80211( wlandevice_t *wlandev, UINT32 ethconv, wlan_pb_t *
/* here, we don't care what kind of ether frm. Just stick it */
/* in the 80211 payload */
pb->p80211hostbuf = kmalloc( WLAN_HDR_A3_LEN, GFP_ATOMIC);
if ( pb->p80211hostbuf == NULL ) return 1;
if ( pb->p80211hostbuf == NULL ) {
return 1;
WLAN_LOG_DEBUG0(1, "Failed to alloc hostbuf1\n");
}
pb->p80211buflen = WLAN_HDR_A3_LEN;
pb->p80211free = p80211pb_kfree_s;
pb->p80211buf = (UINT8*)(pb->p80211hostbuf);
@ -145,7 +148,10 @@ int p80211pb_ether_to_p80211( wlandevice_t *wlandev, UINT32 ethconv, wlan_pb_t *
/* it's 802.3, pass ether payload unchanged, */
/* leave off any PAD octets. */
pb->p80211hostbuf = kmalloc( WLAN_HDR_A3_LEN, GFP_ATOMIC);
if ( pb->p80211hostbuf == NULL ) return 1;
if ( pb->p80211hostbuf == NULL ) {
WLAN_LOG_DEBUG0(1, "Failed to alloc hostbuf2\n");
return 1;
}
pb->p80211buflen = WLAN_HDR_A3_LEN;
pb->p80211free = p80211pb_kfree_s;
pb->p80211buf = (UINT8*)(pb->p80211hostbuf);
@ -160,7 +166,10 @@ int p80211pb_ether_to_p80211( wlandevice_t *wlandev, UINT32 ethconv, wlan_pb_t *
WLAN_HDR_A3_LEN +
sizeof(wlan_llc_t) +
sizeof(wlan_snap_t), GFP_ATOMIC);
if ( pb->p80211hostbuf == NULL ) return 1;
if ( pb->p80211hostbuf == NULL ) {
WLAN_LOG_DEBUG0(1, "Failed to alloc hostbuf3\n");
return 1;
}
pb->p80211buflen =
WLAN_HDR_A3_LEN +
sizeof(wlan_llc_t) +
@ -208,7 +217,7 @@ int p80211pb_ether_to_p80211( wlandevice_t *wlandev, UINT32 ethconv, wlan_pb_t *
case WLAN_MACMODE_ESS_STA:
fc |= host2ieee16(WLAN_SET_FC_TODS(1));
a1 = wlandev->bssid; /*bssid*/
a2 = pb->eth_hdr->saddr; /*src*/
a2 = wlandev->netdev->dev_addr; /*src*/
a3 = pb->eth_hdr->daddr; /*dest*/
break;
case WLAN_MACMODE_ESS_AP: