Cannot add more than 12 antenna patterns when use direction_finding_conntectless_rx example

I am using the latest code(v1.9.0-rc2). The board is nrf52833_nrf52833. The board overlay file set antenna number to 13. (The original value is 12). 

        dfe-antenna-num = <13>;

It seems that I can only have maximum 12 patterns in the ant-patterns. If I set 12 patterns, I will get an error.

main.c: 

static const uint8_t ant_patterns[] = { 0x2, 0x0, 0x5, 0x6, 0x1, 0x4,
					0xC, 0x9, 0xE, 0xD, 0x8, 0xA };
					
Got an error if adding more patterns:
static const uint8_t ant_patterns[] = { 0x2, 0x0, 0x5, 0x6, 0x1, 0x4,
					0xC, 0x9, 0xE, 0xD, 0x8, 0xA, 0x2};

When I have 13+ patterns, I got a CTE failed message(-22) from the device, and I cannot receive CTE. It is OK if I keep the number of ant_pattern under 12. 

PER_ADV_SYNC[0]: [DEVICE]: 1A:36:DC:A3:B0:74 (random), tx_power 127, RSSI -58, CTE AOA, data length 0, data: 
success. Periodic sync established.
Enable receiving of CTE...
failed (err -22)
Scan disable...Success.

Related