qcacmn: Fix replenish size for monitor buffers during attach

Head_pointer == Tail_pointer is treated as ring empty and
Tail_pointer + 1 == head_pointer is treated as ring full,
hence replenish count should be num_entries-1 to avoid
buffer ring treated as empty or full.

Change-Id: I157834a86380bcd2f03679510357ad3ca5550374
CRs-Fixed: 2569491
diff --git a/dp/wifi3.0/dp_rx_mon_dest.c b/dp/wifi3.0/dp_rx_mon_dest.c
index 105d83a..f7b43f4 100644
--- a/dp/wifi3.0/dp_rx_mon_dest.c
+++ b/dp/wifi3.0/dp_rx_mon_dest.c
@@ -1229,8 +1229,8 @@
 
 	rx_desc_pool->owner = HAL_RX_BUF_RBM_SW3_BM;
 
-	replenish_size = (num_entries < MON_BUF_MIN_ALLOC_ENTRIES) ?
-			  num_entries : MON_BUF_MIN_ALLOC_ENTRIES;
+	replenish_size = ((num_entries - 1) < MON_BUF_MIN_ALLOC_ENTRIES) ?
+			  (num_entries - 1) : MON_BUF_MIN_ALLOC_ENTRIES;
 	status = dp_pdev_rx_buffers_attach(soc, mac_id, mon_buf_ring,
 					   rx_desc_pool, replenish_size);