Skip to content

Commit cc5aea3

Browse files
committed
Fix max VIFs check
Off by one error. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 5fffeab commit cc5aea3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fw_if/umac_if/src/system/fmac_vif.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ int nrf_wifi_fmac_vif_check_if_limit(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
2424
switch (if_type) {
2525
case NRF_WIFI_IFTYPE_STATION:
2626
case NRF_WIFI_IFTYPE_P2P_CLIENT:
27-
if (sys_dev_ctx->num_sta >= MAX_NUM_STAS) {
27+
if (sys_dev_ctx->num_sta > MAX_NUM_STAS) {
2828
nrf_wifi_osal_log_err("%s: Maximum STA Interface type exceeded",
2929
__func__);
3030
return -1;
3131
}
3232
break;
3333
case NRF_WIFI_IFTYPE_AP:
3434
case NRF_WIFI_IFTYPE_P2P_GO:
35-
if (sys_dev_ctx->num_ap >= MAX_NUM_APS) {
35+
if (sys_dev_ctx->num_ap > MAX_NUM_APS) {
3636
nrf_wifi_osal_log_err("%s: Maximum AP Interface type exceeded",
3737
__func__);
3838
return -1;

0 commit comments

Comments
 (0)