Lines Matching refs:sidx
304 u8 sidx;
308 for (sidx = 0; sidx < MAX_STA_NUM; sidx++) {
309 if (!(tx->station[sidx].flag & STATION_CONNECTED_FLAG))
311 if (memcmp(tx->station[sidx].mac, dst_mac, ETH_ALEN))
319 sidx = STA_BROADCAST_INDEX;
322 if (skb_queue_len(&tx->station[sidx].data_list) > 60)
326 if (skb_queue_len(&tx->station[sidx].data_list) > 256)
328 skb_queue_tail(&tx->station[sidx].data_list, skb);
411 int sidx;
454 for (sidx = 0; sidx < MAX_STA_NUM - 1; sidx++) {
455 if (memcmp(&buffer[10], tx->station[sidx].mac, ETH_ALEN))
457 if (tx->station[sidx].flag & STATION_CONNECTED_FLAG) {
458 tx->station[sidx].flag |= STATION_HEARTBEAT_FLAG;
463 if (sidx == MAX_STA_NUM - 1) {
464 for (sidx = 0; sidx < MAX_STA_NUM - 1; sidx++) {
465 if (tx->station[sidx].flag & STATION_CONNECTED_FLAG)
467 memcpy(tx->station[sidx].mac, &buffer[10], ETH_ALEN);
468 tx->station[sidx].flag |= STATION_CONNECTED_FLAG;
469 tx->station[sidx].flag |= STATION_HEARTBEAT_FLAG;