|
@@ -451,14 +451,14 @@ static s32 update_attrib(struct adapter *padapter, struct sk_buff *pkt, struct p
|
|
|
|
|
|
pattrib->pktlen = pktfile.pkt_len;
|
|
pattrib->pktlen = pktfile.pkt_len;
|
|
|
|
|
|
- if (ETH_P_IP == pattrib->ether_type) {
|
|
|
|
|
|
+ if (pattrib->ether_type == ETH_P_IP) {
|
|
/* The following is for DHCP and ARP packet, we use cck1M to tx these packets and let LPS awake some time */
|
|
/* The following is for DHCP and ARP packet, we use cck1M to tx these packets and let LPS awake some time */
|
|
/* to prevent DHCP protocol fail */
|
|
/* to prevent DHCP protocol fail */
|
|
u8 tmp[24];
|
|
u8 tmp[24];
|
|
_rtw_pktfile_read(&pktfile, &tmp[0], 24);
|
|
_rtw_pktfile_read(&pktfile, &tmp[0], 24);
|
|
pattrib->dhcp_pkt = 0;
|
|
pattrib->dhcp_pkt = 0;
|
|
if (pktfile.pkt_len > 282) {/* MINIMUM_DHCP_PACKET_SIZE) { */
|
|
if (pktfile.pkt_len > 282) {/* MINIMUM_DHCP_PACKET_SIZE) { */
|
|
- if (ETH_P_IP == pattrib->ether_type) {/* IP header */
|
|
|
|
|
|
+ if (pattrib->ether_type == ETH_P_IP) {/* IP header */
|
|
if (((tmp[21] == 68) && (tmp[23] == 67)) ||
|
|
if (((tmp[21] == 68) && (tmp[23] == 67)) ||
|
|
((tmp[21] == 67) && (tmp[23] == 68))) {
|
|
((tmp[21] == 67) && (tmp[23] == 68))) {
|
|
/* 68 : UDP BOOTP client */
|
|
/* 68 : UDP BOOTP client */
|
|
@@ -469,7 +469,7 @@ static s32 update_attrib(struct adapter *padapter, struct sk_buff *pkt, struct p
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- } else if (0x888e == pattrib->ether_type) {
|
|
|
|
|
|
+ } else if (pattrib->ether_type == 0x888e) {
|
|
DBG_88E_LEVEL(_drv_info_, "send eapol packet\n");
|
|
DBG_88E_LEVEL(_drv_info_, "send eapol packet\n");
|
|
}
|
|
}
|
|
|
|
|