problem with management frames (0.0.4 and later)

Petr Novak pen
Mon Oct 6 04:14:20 PDT 2003


Dear Jouni and all,

sorry for the delay, this is a dump of the problem announced last week with 
recent CVS versions of hostAP while handling association/authentication. It 
works 100% in 0.0.3 and works really bad in 0.0.4 and later. All firmware is 
STA1.7.4, all stations are hostAP same version. The sniffed WLAN is wlan2, 
MAC addr replaced by AP:AP:AP:AP:AP, station MAC mapped to STA0x:STA0x:STA0x.

Let's start with a good sniff and syslog, 0.0.3:

Oct  4 12:45:06 dobgw kernel: wlan2: STA04:STA04:STA04 auth_cb - STA 
authenticated
Oct  4 12:45:06 dobgw kernel: wlan2: STA04:STA04:STA04 assoc_cb - STA 
associated
Oct  4 12:45:06 dobgw kernel: wlan2: STA03:STA03:STA03 auth_cb - STA 
authenticated
Oct  4 12:45:06 dobgw kernel: wlan2: STA03:STA03:STA03 assoc_cb - STA 
associated

Sniffed frame: status 0000  mactime=969723652
  silence=170 signal=188 rate=20 rxflow=0
  FC=0x00b0  mgmt::authentication  pver=0
  dur=reserved?  frag#=0  seq#=72
  DA=AP:AP:AP:AP:AP:AP SA=STA04:STA04:STA04 BSSID=AP:AP:AP:AP:AP:AP
  Authentication frame body:
  00 00 01 00 00 00
  Authentication Algorithm Number: 0=Open System
  Authentication Transaction Number: 1
  Status code: 0=Successful


Sniffed frame: status 0000  mactime=969724000
  silence=170 signal=187 rate=20 rxflow=0
  FC=0x00d4  ctrl::acknowledgement  pver=0
  dur=0
  RA=STA04:STA04:STA04
  data: 00 00 01 00 00 00

Sniffed frame: status 0000  mactime=969724930
  silence=171 signal=187 rate=20 rxflow=0
  FC=0x00b0  mgmt::authentication  pver=0
  dur=258  frag#=0  seq#=494
  DA=STA04:STA04:STA04 SA=AP:AP:AP:AP:AP:AP BSSID=AP:AP:AP:AP:AP:AP
  Authentication frame body:
  00 00 02 00 00 00
  Authentication Algorithm Number: 0=Open System
  Authentication Transaction Number: 2
  Status code: 0=Successful


Sniffed frame: status 0000  mactime=969725289
  silence=171 signal=188 rate=20 rxflow=0
  FC=0x00d4  ctrl::acknowledgement  pver=0
  dur=0
  RA=AP:AP:AP:AP:AP:AP
  data: 5c a3 41 00 00 00 00 00 64 00 01 00 00 06 44 4f 42 2d 30 33 01 04 82 
84 0b 16 03 01 01 05 04 00 01 00 00

Sniffed frame: status 0000  mactime=969725779
  silence=171 signal=188 rate=20 rxflow=0
  FC=0x0000  mgmt::association_request  pver=0
  AID_in_PS-Poll=1110  frag#=0  seq#=73
  DA=AP:AP:AP:AP:AP:AP SA=STA04:STA04:STA04 BSSID=AP:AP:AP:AP:AP:AP
  Association request frame body:
  Capability information: 0x0021 ESS Short_Preample[802.11b]
  Listen interval: 10
  ElemID #0 (Service Set Identify (SSID)):
    len=6  444f422d3033 = DOB-03
  ElemID #1 (Supported rates):
    len=4  82840b16 = (Mbit/s) BSSBasicRateSet: 1 2 Others: 5.5 11


Sniffed frame: status 0000  mactime=969726175
  silence=171 signal=186 rate=20 rxflow=0
  FC=0x00d4  ctrl::acknowledgement  pver=0
  dur=0
  RA=STA04:STA04:STA04
  data: aa aa 03 00 00 00 08 06 00 01 08 00 06 04 00 01 00 60 b3 6b 6c 07 0a 
5f 03 01 00 00 00 00 00 00 0a 5f 03 02

Sniffed frame: status 0000  mactime=969726885
  silence=170 signal=186 rate=20 rxflow=0
  FC=0x0010  mgmt::association_response  pver=0
  dur=258  frag#=0  seq#=495
  DA=STA04:STA04:STA04 SA=AP:AP:AP:AP:AP:AP BSSID=AP:AP:AP:AP:AP:AP
  Association response frame body:
  Capability information: 0x0001 ESS
  Status code: 0=Successful
  Association ID (AID): 49155
  ElemID #1 (Supported rates):
    len=4  82840b16 = (Mbit/s) BSSBasicRateSet: 1 2 Others: 5.5 11


Sniffed frame: status 0000  mactime=969727268
  silence=170 signal=188 rate=20 rxflow=0
  FC=0x00d4  ctrl::acknowledgement  pver=0
  dur=0
  RA=AP:AP:AP:AP:AP:AP
  data: f5 c1 2b 00 00 00 00 00 64 00 01 00 00 06 44 4f 42 2d 30 33 01 04 82 
84 0b 16 03 01 01 05 04 00 01 00 00

Sniffed frame: status 0000  mactime=969772441
  silence=171 signal=187 rate=20 rxflow=0
  FC=0x00d4  ctrl::acknowledgement  pver=0
  dur=0
  RA=STA03:STA03:STA03:STA03
  data: c8 0f 2c 00 00 00 00 00 64 00 01 00 00 06 44 4f 42 2d 30 33 01 04 82 
84 0b 16 03 01 01

Sniffed frame: status 0000  mactime=969772971
  silence=170 signal=186 rate=20 rxflow=0
  FC=0x00b0  mgmt::authentication  pver=0
  dur=258  frag#=0  seq#=496
  DA=STA03:STA03:STA03:STA03 SA=AP:AP:AP:AP:AP:AP BSSID=AP:AP:AP:AP:AP:AP
  Authentication frame body:
  00 00 02 00 00 00
  Authentication Algorithm Number: 0=Open System
  Authentication Transaction Number: 2
  Status code: 0=Successful


Sniffed frame: status 0000  mactime=969773984
  silence=171 signal=187 rate=20 rxflow=0
  FC=0x00c4  ctrl::clear_to_send  pver=0
  dur=644
  RA=STA03:STA03:STA03:STA03
  data: 3a dd 42 00 00 00 00 00 64 00 01 00 00 06 44 4f 42 2d 30 33 01 04 82 
84 0b 16 03 01 01

Sniffed frame: status 0000  mactime=969774650
  silence=170 signal=186 rate=20 rxflow=0
  FC=0x00d4  ctrl::acknowledgement  pver=0
  dur=644
  RA=STA03:STA03:STA03:STA03
  data: 70 e0 42 00 00 00 00 00 64 00 01 00 00 06 44 4f 42 2d 30 33 01 04 82 
84 0b 16 03 01 01

Sniffed frame: status 0000  mactime=969775440
  silence=170 signal=186 rate=20 rxflow=0
  FC=0x0010  mgmt::association_response  pver=0
  dur=258  frag#=0  seq#=497
  DA=STA03:STA03:STA03:STA03 SA=AP:AP:AP:AP:AP:AP BSSID=AP:AP:AP:AP:AP:AP
  Association response frame body:
  Capability information: 0x0001 ESS
  Status code: 0=Successful
  Association ID (AID): 49156
  ElemID #1 (Supported rates):
    len=4  82840b16 = (Mbit/s) BSSBasicRateSet: 1 2 Others: 5.5 11


Sniffed frame: status 0000  mactime=969817083
  silence=170 signal=187 rate=20 rxflow=0
  FC=0x0080  mgmt::beacon  pver=0
  dur=0  frag#=0  seq#=498
  DA=ff:ff:ff:ff:ff:ff SA=AP:AP:AP:AP:AP:AP BSSID=AP:AP:AP:AP:AP:AP
  Beacon frame body:
  Timestamp: 00000000004973
  Beacon interval: 100
  Capability information: 0x0001 ESS
  ElemID #0 (Service Set Identify (SSID)):
    len=6  444f422d3033 = DOB-03
  ElemID #1 (Supported rates):
    len=4  82840b16 = (Mbit/s) BSSBasicRateSet: 1 2 Others: 5.5 11
  ElemID #3 (DS Parameter Set):
    len=1  01 = Current_Channel=1
  ElemID #5 (TIM):
    len=4  00010000 = DTIM_Count=0  DTIM_Period=1  Bitmap_Control=0x00  
Partial Virtual Bitmap: 00


Sniffed frame: status 0000  mactime=969833310
  silence=171 signal=188 rate=20 rxflow=0
  FC=0x00d4  ctrl::acknowledgement  pver=0
  dur=0
  RA=STA02:STA02:STA02
  data: 81 36 44 00 00 00 00 00 64 00 01 00 00 06 44 4f 42 2d 30 33 01 04 82 
84 0b 16 03 01 01

and now the bad one:

Oct  4 12:44:39 dobgw kernel: wlan2: STA04:STA04:STA04 auth_cb - frame was 
not ACKed
Oct  4 12:44:39 dobgw kernel: wlan2: STA04:STA04:STA04 auth_cb - frame was 
not ACKed
Oct  4 12:44:39 dobgw kernel: wlan2: STA04:STA04:STA04 auth_cb - frame was 
not ACKed
Oct  4 12:44:39 dobgw kernel: wlan2: STA04:STA04:STA04 auth_cb - frame was 
not ACKed
Oct  4 12:44:39 dobgw kernel: wlan2: STA04:STA04:STA04 auth_cb - frame was 
not ACKed
Oct  4 12:44:39 dobgw kernel: wlan2: STA04:STA04:STA04 auth_cb - frame was 
not ACKed
Oct  4 12:44:39 dobgw kernel: wlan2: STA04:STA04:STA04 auth_cb - frame was 
not ACKed
Oct  4 12:44:39 dobgw kernel: wlan2: STA01:STA01:STA01 auth_cb - frame was 
not ACKed
Oct  4 12:44:39 dobgw kernel: wlan2: STA04:STA04:STA04 auth_cb - frame was 
not ACKed

Sniffed frame: status 0000  mactime=860044527
  silence=170 signal=184 rate=20 rxflow=0
  FC=0x0080  mgmt::beacon  pver=0
  dur=0  frag#=0  seq#=46
  DA=ff:ff:ff:ff:ff:ff SA=AP:AP:AP:AP:AP:AP BSSID=AP:AP:AP:AP:AP:AP
  Beacon frame body:
  Timestamp: 00000000001de2
  Beacon interval: 100
  Capability information: 0x0001 ESS
  ElemID #0 (Service Set Identify (SSID)):
    len=6  444f422d3033 = DOB-03
  ElemID #1 (Supported rates):
    len=4  82840b16 = (Mbit/s) BSSBasicRateSet: 1 2 Others: 5.5 11
  ElemID #3 (DS Parameter Set):
    len=1  01 = Current_Channel=1
  ElemID #5 (TIM):
    len=4  00010000 = DTIM_Count=0  DTIM_Period=1  Bitmap_Control=0x00  
Partial Virtual Bitmap: 00


Sniffed frame: status 0000  mactime=860045173
  silence=171 signal=184 rate=20 rxflow=0
  FC=0x00b0  mgmt::authentication  pver=0
  dur=258  frag#=0  seq#=47
  DA=STA04:STA04:STA04 SA=AP:AP:AP:AP:AP:AP BSSID=AP:AP:AP:AP:AP:AP
  Authentication frame body:
  00 00 02 00 00 00
  Authentication Algorithm Number: 0=Open System
  Authentication Transaction Number: 2
  Status code: 0=Successful


Sniffed frame: status 0000  mactime=860045532
  silence=171 signal=189 rate=20 rxflow=0
  FC=0x00d4  ctrl::acknowledgement  pver=0
  dur=0
  RA=AP:AP:AP:AP:AP:AP
  data: 57 12 0e 00 00 00 00 00 64 00 01 00 00 06 44 4f 42 2d 30 33 01 04 82 
84 0b 16 03 01 01 05 04 00 01 01 00

Sniffed frame: status 0000  mactime=860045847
  silence=171 signal=189 rate=20 rxflow=0
  FC=0x0000  mgmt::association_request  pver=0
  AID_in_PS-Poll=1110  frag#=0  seq#=2161
  DA=AP:AP:AP:AP:AP:AP SA=STA04:STA04:STA04 BSSID=AP:AP:AP:AP:AP:AP
  Association request frame body:
  Capability information: 0x0001 ESS
  Listen interval: 10
  ElemID #0 (Service Set Identify (SSID)):
    len=6  444f422d3033 = DOB-03
  ElemID #1 (Supported rates):
    len=4  82840b16 = (Mbit/s) BSSBasicRateSet: 1 2 Others: 5.5 11


Sniffed frame: status 0000  mactime=860046243
  silence=171 signal=184 rate=20 rxflow=0
  FC=0x00d4  ctrl::acknowledgement  pver=0
  dur=0
  RA=STA04:STA04:STA04
  data: 09 00

Sniffed frame: status 0000  mactime=860046593
  silence=170 signal=184 rate=20 rxflow=0
  FC=0x08b0  mgmt::authentication  pver=0  retry
  dur=258  frag#=0  seq#=47
  DA=STA04:STA04:STA04 SA=AP:AP:AP:AP:AP:AP BSSID=AP:AP:AP:AP:AP:AP
  Authentication frame body:
  00 00 02 00 00 00
  Authentication Algorithm Number: 0=Open System
  Authentication Transaction Number: 2
  Status code: 0=Successful


Sniffed frame: status 0000  mactime=860046952
  silence=170 signal=189 rate=20 rxflow=0
  FC=0x00d4  ctrl::acknowledgement  pver=0
  dur=0
  RA=AP:AP:AP:AP:AP:AP
  data: 00 00 01 00 00 00

Sniffed frame: status 0000  mactime=860048010
  silence=170 signal=186 rate=20 rxflow=0
  FC=0x08b0  mgmt::authentication  pver=0  retry
  dur=258  frag#=0  seq#=47
  DA=STA04:STA04:STA04 SA=AP:AP:AP:AP:AP:AP BSSID=AP:AP:AP:AP:AP:AP
  Authentication frame body:
  00 00 02 00 00 00
  Authentication Algorithm Number: 0=Open System
  Authentication Transaction Number: 2
  Status code: 0=Successful


Sniffed frame: status 0000  mactime=860048369
  silence=170 signal=190 rate=20 rxflow=0
  FC=0x00d4  ctrl::acknowledgement  pver=0
  dur=0
  RA=AP:AP:AP:AP:AP:AP
  data: 09 00

Sniffed frame: status 0000  mactime=860049547
  silence=170 signal=184 rate=20 rxflow=0
  FC=0x00b4  ctrl::request_to_send  pver=0
  dur=854
  RA=STA04:STA04:STA04 TA=AP:AP:AP:AP:AP:AP
  data: 00 00 01 00 00 00

Sniffed frame: status 0000  mactime=860049849
  silence=170 signal=189 rate=20 rxflow=0
  FC=0x00c4  ctrl::clear_to_send  pver=0
  dur=596
  RA=AP:AP:AP:AP:AP:AP
  data: 09 00

Sniffed frame: status 0000  mactime=860053267
  silence=170 signal=183 rate=20 rxflow=0
  FC=0x00b4  ctrl::request_to_send  pver=0
  dur=854
  RA=STA04:STA04:STA04 TA=AP:AP:AP:AP:AP:AP
  data: 09 00

Sniffed frame: status 0000  mactime=860053569
  silence=171 signal=190 rate=20 rxflow=0
  FC=0x00c4  ctrl::clear_to_send  pver=0
  dur=596
  RA=AP:AP:AP:AP:AP:AP
  data: e9 32 19 00 00 00 00 00 64 00 01 00 00 06 44 4f 42 2d 30 33 01 04 82 
84 0b 16 03 01 01

Sniffed frame: status 0000  mactime=860054767
  silence=170 signal=184 rate=20 rxflow=0
  FC=0x00c0  mgmt::deauthentication  pver=0
  dur=258  frag#=0  seq#=48
  DA=STA04:STA04:STA04 SA=AP:AP:AP:AP:AP:AP BSSID=AP:AP:AP:AP:AP:AP
  Deauthentication frame body:
  Status code: 9=Station requesting (re)association is not authenticated with 
responding station


Sniffed frame: status 0000  mactime=860055110
  silence=170 signal=189 rate=20 rxflow=0
  FC=0x00d4  ctrl::acknowledgement  pver=0
  dur=0
  RA=AP:AP:AP:AP:AP:AP
  data: 00 d3 46 4f 42 2d 30 9b 04 04 82 84 0b 16

Sniffed frame: status 0000  mactime=860055579
  silence=171 signal=189 rate=20 rxflow=0
  FC=0x00b0  mgmt::authentication  pver=0
  dur=reserved?  frag#=0  seq#=2162
  DA=AP:AP:AP:AP:AP:AP SA=STA04:STA04:STA04 BSSID=AP:AP:AP:AP:AP:AP
  Authentication frame body:
  00 00 01 00 00 00
  Authentication Algorithm Number: 0=Open System
  Authentication Transaction Number: 1
  Status code: 0=Successful


Sniffed frame: status 0000  mactime=860055927
  silence=171 signal=184 rate=20 rxflow=0
  FC=0x00d4  ctrl::acknowledgement  pver=0
  dur=0
  RA=STA04:STA04:STA04
  data: 00 00 02 00 00 00



Any help would be apreciated.

--
Petr Novak
pen at dobnet.cz
+420 776 204 526
+420 603 870 101





More information about the Hostap mailing list