|
@@ -118,7 +118,7 @@ bool wma_is_vdev_in_ap_mode(tp_wma_handle wma, uint8_t vdev_id)
|
|
|
{
|
|
|
struct wma_txrx_node *intf = wma->interfaces;
|
|
|
|
|
|
- if (vdev_id > wma->max_bssid) {
|
|
|
+ if (vdev_id >= wma->max_bssid) {
|
|
|
WMA_LOGE("%s: Invalid vdev_id %hu", __func__, vdev_id);
|
|
|
QDF_ASSERT(0);
|
|
|
return false;
|
|
@@ -147,7 +147,7 @@ bool wma_is_vdev_in_ibss_mode(tp_wma_handle wma, uint8_t vdev_id)
|
|
|
{
|
|
|
struct wma_txrx_node *intf = wma->interfaces;
|
|
|
|
|
|
- if (vdev_id > wma->max_bssid) {
|
|
|
+ if (vdev_id >= wma->max_bssid) {
|
|
|
WMA_LOGE("%s: Invalid vdev_id %hu", __func__, vdev_id);
|
|
|
QDF_ASSERT(0);
|
|
|
return false;
|
|
@@ -976,7 +976,7 @@ int wma_vdev_start_resp_handler(void *handle, uint8_t *cmd_param_info,
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
- if ((resp_event->vdev_id <= wma->max_bssid) &&
|
|
|
+ if ((resp_event->vdev_id < wma->max_bssid) &&
|
|
|
(qdf_atomic_read(
|
|
|
&wma->interfaces[resp_event->vdev_id].vdev_restart_params.hidden_ssid_restart_in_progress))
|
|
|
&& (wma_is_vdev_in_ap_mode(wma, resp_event->vdev_id) == true)) {
|
|
@@ -1750,7 +1750,7 @@ int wma_vdev_stop_resp_handler(void *handle, uint8_t *cmd_param_info,
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
- if ((resp_event->vdev_id <= wma->max_bssid) &&
|
|
|
+ if ((resp_event->vdev_id < wma->max_bssid) &&
|
|
|
(qdf_atomic_read
|
|
|
(&wma->interfaces[resp_event->vdev_id].vdev_restart_params.
|
|
|
hidden_ssid_restart_in_progress))
|
|
@@ -1790,7 +1790,7 @@ int wma_vdev_stop_resp_handler(void *handle, uint8_t *cmd_param_info,
|
|
|
tpDeleteBssParams params =
|
|
|
(tpDeleteBssParams) req_msg->user_data;
|
|
|
|
|
|
- if (resp_event->vdev_id > wma->max_bssid) {
|
|
|
+ if (resp_event->vdev_id >= wma->max_bssid) {
|
|
|
WMA_LOGE("%s: Invalid vdev_id %d", __func__,
|
|
|
resp_event->vdev_id);
|
|
|
}
|
|
@@ -2893,7 +2893,7 @@ void wma_vdev_resp_timer(void *data)
|
|
|
struct beacon_info *bcn;
|
|
|
struct wma_txrx_node *iface;
|
|
|
|
|
|
- if (tgt_req->vdev_id > wma->max_bssid) {
|
|
|
+ if (tgt_req->vdev_id >= wma->max_bssid) {
|
|
|
WMA_LOGE("%s: Invalid vdev_id %d", __func__,
|
|
|
tgt_req->vdev_id);
|
|
|
wma_cleanup_target_req_param(tgt_req);
|