Lines Matching refs:hlid

300 static int wlcore_get_new_session_id(struct wl1271 *wl, u8 hlid)  in wlcore_get_new_session_id()  argument
302 if (wl->session_ids[hlid] >= SESSION_COUNTER_MAX) in wlcore_get_new_session_id()
303 wl->session_ids[hlid] = 0; in wlcore_get_new_session_id()
305 wl->session_ids[hlid]++; in wlcore_get_new_session_id()
307 return wl->session_ids[hlid]; in wlcore_get_new_session_id()
310 int wl12xx_allocate_link(struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 *hlid) in wl12xx_allocate_link() argument
342 *hlid = link; in wl12xx_allocate_link()
348 void wl12xx_free_link(struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 *hlid) in wl12xx_free_link() argument
352 if (*hlid == WL12XX_INVALID_LINK_ID) in wl12xx_free_link()
357 __clear_bit(*hlid, wl->links_map); in wl12xx_free_link()
358 __clear_bit(*hlid, wlvif->links_map); in wl12xx_free_link()
361 wl->links[*hlid].allocated_pkts = 0; in wl12xx_free_link()
362 wl->links[*hlid].prev_freed_pkts = 0; in wl12xx_free_link()
363 wl->links[*hlid].ba_bitmap = 0; in wl12xx_free_link()
364 eth_zero_addr(wl->links[*hlid].addr); in wl12xx_free_link()
370 wl1271_tx_reset_link_queues(wl, *hlid); in wl12xx_free_link()
371 wl->links[*hlid].wlvif = NULL; in wl12xx_free_link()
374 *hlid == wlvif->ap.bcast_hlid) { in wl12xx_free_link()
380 wlvif->total_freed_pkts = wl->links[*hlid].total_freed_pkts; in wl12xx_free_link()
393 wl->links[*hlid].total_freed_pkts = 0; in wl12xx_free_link()
395 *hlid = WL12XX_INVALID_LINK_ID; in wl12xx_free_link()
444 cmd->device.hlid = wlvif->dev_hlid; in wl12xx_cmd_role_start_dev()
448 cmd->role_id, cmd->device.hlid, cmd->device.session); in wl12xx_cmd_role_start_dev()
540 if (wlvif->sta.hlid == WL12XX_INVALID_LINK_ID) { in wl12xx_cmd_role_start_sta()
541 ret = wl12xx_allocate_link(wl, wlvif, &wlvif->sta.hlid); in wl12xx_cmd_role_start_sta()
545 cmd->sta.hlid = wlvif->sta.hlid; in wl12xx_cmd_role_start_sta()
546 cmd->sta.session = wl->session_ids[wlvif->sta.hlid]; in wl12xx_cmd_role_start_sta()
557 wlvif->role_id, cmd->sta.hlid, cmd->sta.session, in wl12xx_cmd_role_start_sta()
571 wl12xx_free_link(wl, wlvif, &wlvif->sta.hlid); in wl12xx_cmd_role_start_sta()
586 if (WARN_ON(wlvif->sta.hlid == WL12XX_INVALID_LINK_ID)) in wl12xx_cmd_role_stop_sta()
607 wl12xx_free_link(wl, wlvif, &wlvif->sta.hlid); in wl12xx_cmd_role_stop_sta()
785 if (wlvif->sta.hlid == WL12XX_INVALID_LINK_ID) { in wl12xx_cmd_role_start_ibss()
786 ret = wl12xx_allocate_link(wl, wlvif, &wlvif->sta.hlid); in wl12xx_cmd_role_start_ibss()
790 cmd->ibss.hlid = wlvif->sta.hlid; in wl12xx_cmd_role_start_ibss()
795 wlvif->role_id, cmd->sta.hlid, cmd->sta.session, in wl12xx_cmd_role_start_ibss()
811 wl12xx_free_link(wl, wlvif, &wlvif->sta.hlid); in wl12xx_cmd_role_start_ibss()
1328 int wl12xx_cmd_set_default_wep_key(struct wl1271 *wl, u8 id, u8 hlid) in wl12xx_cmd_set_default_wep_key() argument
1341 cmd->hlid = hlid; in wl12xx_cmd_set_default_wep_key()
1368 if (wlvif->sta.hlid == WL12XX_INVALID_LINK_ID) in wl1271_cmd_set_sta_key()
1377 cmd->hlid = wlvif->sta.hlid; in wl1271_cmd_set_sta_key()
1430 u8 key_size, const u8 *key, u8 hlid, u32 tx_seq_32, in wl1271_cmd_set_ap_key() argument
1441 if (hlid == wlvif->ap.bcast_hlid) { in wl1271_cmd_set_ap_key()
1454 (int)key_type, (int)hlid); in wl1271_cmd_set_ap_key()
1457 cmd->hlid = hlid; in wl1271_cmd_set_ap_key()
1493 u8 hlid) in wl12xx_cmd_set_peer_state() argument
1498 wl1271_debug(DEBUG_CMD, "cmd set peer state (hlid=%d)", hlid); in wl12xx_cmd_set_peer_state()
1506 cmd->hlid = hlid; in wl12xx_cmd_set_peer_state()
1527 struct ieee80211_sta *sta, u8 hlid) in wl12xx_cmd_add_peer() argument
1533 wl1271_debug(DEBUG_CMD, "cmd add peer %d", (int)hlid); in wl12xx_cmd_add_peer()
1544 cmd->hlid = hlid; in wl12xx_cmd_add_peer()
1547 cmd->session_id = wl->session_ids[hlid]; in wl12xx_cmd_add_peer()
1593 u8 hlid) in wl12xx_cmd_remove_peer() argument
1599 wl1271_debug(DEBUG_CMD, "cmd remove peer %d", (int)hlid); in wl12xx_cmd_remove_peer()
1607 cmd->hlid = hlid; in wl12xx_cmd_remove_peer()