Changeset 13748
- Timestamp:
- 01/27/10 22:45:43 (3 years ago)
- File:
-
- 1 edited
-
src/router/wiviz2/wiviz.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/wiviz2/wiviz.c
r13747 r13748 525 525 memset(src,0,6); 526 526 memset(dst,0,6); 527 int fc = (hWifi->frame_control & 0xC); 527 528 type =typeUnknown; 528 if (! (hWifi->frame_control & 0xC)) // only accept management frames (type 0)529 if (!fc) // only accept management frames (type 0) 529 530 { 530 531 switch (hWifi->frame_control & 0xF0) { … … 546 547 break; 547 548 } 548 }549 549 #ifdef DEBUG 550 550 fprintf(stderr,"fc: %X",hWifi->frame_control); … … 557 557 fprintf(stderr,"%s\n",ntoa(src)); 558 558 #endif 559 } 559 560 to_ds = hWifi->flags & IEEE80211_TO_DS; 560 561 from_ds = hWifi->flags & IEEE80211_FROM_DS; … … 588 589 589 590 //Parse the 802.11 tags 590 if ( wfType == mgt_probeResponse || wfType == mgt_beacon || wfType== mgt_probeRequest) {591 if (fc == mgt_probeResponse || fc == mgt_beacon || fc == mgt_probeRequest) { 591 592 m = (ieee_802_11_mgt_frame *) (hWifi + 1); 592 593 if (swap16(m->caps) & MGT_CAPS_IBSS) { … … 660 661 } 661 662 } 662 if ( wfType== mgt_probeRequest && host->staInfo->state == ssUnknown)663 if (fc == mgt_probeRequest && host->staInfo->state == ssUnknown) 663 664 host->staInfo->state = ssUnassociated; 664 if ( wfType== mgt_probeRequest && ssidlen > 0 && ssidlen <= 32) {665 if (fc == mgt_probeRequest && ssidlen > 0 && ssidlen <= 32) { 665 666 memcpy(host->staInfo->lastssid, ssid, ssidlen); 666 667 host->staInfo->lastssid[ssidlen] = 0;
Note: See TracChangeset
for help on using the changeset viewer.
