|
@@ -3762,7 +3762,7 @@ bool hdd_save_peer(struct hdd_station_ctx *sta_ctx,
|
|
|
int idx;
|
|
|
struct qdf_mac_addr *mac_addr;
|
|
|
|
|
|
- for (idx = 0; idx < SIR_MAX_NUM_STA_IN_IBSS; idx++) {
|
|
|
+ for (idx = 0; idx < MAX_PEERS; idx++) {
|
|
|
mac_addr = &sta_ctx->conn_info.peer_macaddr[idx];
|
|
|
if (qdf_is_macaddr_zero(mac_addr)) {
|
|
|
hdd_debug("adding peer: %pM at idx: %d",
|
|
@@ -3781,7 +3781,7 @@ void hdd_delete_peer(struct hdd_station_ctx *sta_ctx,
|
|
|
int i;
|
|
|
struct qdf_mac_addr *mac_addr;
|
|
|
|
|
|
- for (i = 0; i < SIR_MAX_NUM_STA_IN_IBSS; i++) {
|
|
|
+ for (i = 0; i < MAX_PEERS; i++) {
|
|
|
mac_addr = &sta_ctx->conn_info.peer_macaddr[i];
|
|
|
if (qdf_is_macaddr_equal(mac_addr, peer_mac_addr)) {
|
|
|
qdf_zero_macaddr(mac_addr);
|
|
@@ -3796,7 +3796,7 @@ bool hdd_any_valid_peer_present(struct hdd_adapter *adapter)
|
|
|
int i;
|
|
|
struct qdf_mac_addr *mac_addr;
|
|
|
|
|
|
- for (i = 0; i < SIR_MAX_NUM_STA_IN_IBSS; i++) {
|
|
|
+ for (i = 0; i < MAX_PEERS; i++) {
|
|
|
mac_addr = &sta_ctx->conn_info.peer_macaddr[i];
|
|
|
if (!qdf_is_macaddr_zero(mac_addr) &&
|
|
|
!qdf_is_macaddr_broadcast(mac_addr)) {
|