home *** CD-ROM | disk | FTP | other *** search
/ ftp.ee.pdx.edu / 2014.02.ftp.ee.pdx.edu.tar / ftp.ee.pdx.edu / pub / mobile / wi.44.patches / if_wavelan_ieee.h.diff < prev    next >
Text File  |  2002-01-17  |  2KB  |  86 lines

  1. *** ../wavelan.orig/if_wavelan_ieee.h    Thu Jan 17 11:19:39 2002
  2. --- if_wavelan_ieee.h    Thu Jan 17 13:20:20 2002
  3. ***************
  4. *** 76,81 ****
  5. --- 76,111 ----
  6.   #define WI_RID_ZERO_CACHE    0x0300
  7.   #define WI_RID_READ_CACHE    0x0400
  8.   #endif
  9. + #define WI_RID_MONITOR_MODE    0x0500
  10. + #define WI_RID_SCAN_APS        0x0600
  11. + #define WI_RID_READ_APS        0x0700
  12. + /*
  13. +  * Turn monitoring off.
  14. +  */
  15. + #define        WI_MONITOR_OFF          0x0000
  16. + /*
  17. +  * Type of header to attach to the monitoring packets.
  18. +  */
  19. + #define  WI_MONITOR_HTYPE        0x0003
  20. + #define  WI_MONITOR_ETHER        0x0001
  21. + #define  WI_MONITOR_80211        0x0002
  22. + #define  WI_MONITOR_WAVELAN      0x0003
  23. + /*
  24. +  * Type of packets to monitor.
  25. +  */
  26. + #define WI_MONITOR_PTYPE        0x003C
  27. + #define WI_MONITOR_MGMT         0x0004
  28. + #define WI_MONITOR_CTRL         0x0008
  29. + #define WI_MONITOR_DATA         0x0010
  30. + #define WI_MONITOR_BEACONS      0x0020
  31. + #define WI_MONITOR_ALL          0x003C
  32. + /* Just something for now */
  33. + #define        DLT_WAVELAN_HEADER      121
  34.   
  35.   struct wi_80211_hdr {
  36.       u_int16_t        frame_ctl;
  37. ***************
  38. *** 115,120 ****
  39. --- 145,158 ----
  40.   #define WI_STYPE_MGMT_AUTH    0x00B0    /* authentication */
  41.   #define WI_STYPE_MGMT_DEAUTH    0x00C0    /* deauthentication */
  42.   
  43. + #define WI_STYPE_CTL_PSPOLL     0x00A0
  44. + #define WI_STYPE_CTL_RTS        0x00B0
  45. + #define WI_STYPE_CTL_CTS        0x00C0
  46. + #define WI_STYPE_CTL_ACK        0x00D0
  47. + #define WI_STYPE_CTL_CFEND      0x00E0
  48. + #define WI_STYPE_CTL_CFENDACK   0x00F0
  49.   struct wi_mgmt_hdr {
  50.       u_int16_t        frame_ctl;
  51.       u_int16_t        duration;
  52. ***************
  53. *** 170,175 ****
  54. --- 208,231 ----
  55.       u_int32_t        wi_rx_msg_in_bad_msg_frags;
  56.   };
  57.   #endif
  58. + /*
  59. +  * This is the access point info obtained from scans.
  60. +  */
  61. + #define MAXAPINFO      30
  62. + struct wi_apinfo {
  63. +     char    bssid[6];       /* unique BSSID (mac address) */
  64. +     int     channel;        /* channel */
  65. +     int     signal;         /* signal strength */
  66. +     int     noise;          /* noise strength */
  67. +     int     quality;        /* quality */
  68. +     int     namelen;        /* length of essid string */
  69. +     char    name[32];       /* essid string */
  70. +     int     capinfo;    /* capability info */ 
  71. +     int     interval;    /* beacon xmit interval */
  72. + };
  73.   
  74.   /*
  75.    * These are all the LTV record types that we can read or write
  76.