AR9130/AR9160 radar detection

Overview

The AR9130/AR9160 radar reports include much more information than the previous generation.

PHY error frame format

The PHY error length is now (at least) three bytes, with the following information (for a frame 'n' bytes in length):

Flags contains:

The stronger of the RSSIs in the primary and extension channel should be used.

FFT information

An optional FFT report is available for frames which meet a certain set of parameters. This is primarily designed to assist in chirp detection, where a radar pulse moves in frequency over time. These pulses are normally detected as long pulses (45-90 uS).

Each FFT sample corresponds to a 3.2uS window (40MHz/80MHz clock) or 2.9uS window (44MHz/88MHz clock).

HT20:

Byte

Bit field

Description

0

[3:0]:

bin -28 {bitmap, quantized magnitude[2:0]}

[7:4]:

bin -27 {bitmap, quantized magnitude[2:0]}

1

[3:0]:

bin -26 {bitmap, quantized magnitude[2:0]}

[7:4]:

bin -25 {bitmap, quantized magnitude[2:0]}

2 - 25

...

26

[3:0]:

bin 24 {bitmap, quantized magnitude[2:0]}

[7:4]:

bin 25 {bitmap, quantized magnitude[2:0]}

27

[3:0]:

bin 26 {bitmap, quantized magnitude[2:0]}

[7:4]:

bin 27 {bitmap, quantized magnitude[2:0]}

28

[7:0]:

all bins {max_magnitude[1:0], bitmap_weight[5:0]}

29

[7:0]:

all bins max_magnitude[9:2]

30

[7:0]:

all bins {max_index[5:0], max_magnitude[11:10]}

Dynamic HT40 mode (regardless of whether the received data frames are HT20 or HT40; this is the mode the PHY is in):

Byte

Bitfield

Description

0

[3:0]:

bin -64 {bitmap, quantized magnitude[2:0]}

[7:4]:

bin -63 {bitmap, quantized magnitude[2:0]}

1

[3:0]:

bin -62 {bitmap, quantized magnitude[2:0]}

[7:4]:

bin -61 {bitmap, quantized magnitude[2:0]}

2 - 61

62

[3:0]:

bin 60 {bitmap, quantized magnitude[2:0]}

[7:4]:

bin 61 {bitmap, quantized magnitude[2:0]}

63

[3:0]:

bin 62 {bitmap, quantized magnitude[2:0]}

[7:4]:

bin 63 {bitmap, quantized magnitude[2:0]}

64

[7:0]:

lower bins {max_magnitude[1:0], bitmap_weight[5:0]}

65

[7:0]:

lower bins max_magnitude[9:2]

66

[7:0]:

lower bins {max_index[5:0], max_magnitude[11:10]}

67

[7:0]:

upper bins {max_magnitude[1:0], bitmap_weight[5:0]}

68

[7:0]:

upper bins max_magnitude[9:2]

69

[7:0]:

upper bins {max_index[5:0], max_magnitude[11:10]}

The radar FFT analysis provides a variety of information:

Notes / Limitations

dev/ath_hal(4)/RadarDetection/AR9001 (last edited 2012-12-28T05:28:10+0000 by AdrianChadd)