• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/wlan/

Lines Matching refs:nt

51 static bss_t * _ieee80211_find_node(struct ieee80211_node_table *nt,
55 wlan_node_alloc(struct ieee80211_node_table *nt, int wh_size)
97 wlan_setup_node(struct ieee80211_node_table *nt, bss_t *ni,
107 IEEE80211_NODE_LOCK_BH(nt);
111 ni->ni_list_prev = nt->nt_node_last;
112 if(nt->nt_node_last != NULL)
114 nt->nt_node_last->ni_list_next = ni;
116 nt->nt_node_last = ni;
117 if(nt->nt_node_first == NULL)
119 nt->nt_node_first = ni;
123 if((ni->ni_hash_next = nt->nt_hash[hash]) != NULL)
125 nt->nt_hash[hash]->ni_hash_prev = ni;
128 nt->nt_hash[hash] = ni;
130 if (!nt->isTimerArmed) {
131 A_TIMEOUT_MS(&nt->nt_inact_timer, WLAN_NODE_INACT_TIMEOUT_MSEC, 0);
132 nt->isTimerArmed = TRUE;
135 IEEE80211_NODE_UNLOCK_BH(nt);
139 _ieee80211_find_node(struct ieee80211_node_table *nt,
145 IEEE80211_NODE_LOCK_ASSERT(nt);
148 for(ni = nt->nt_hash[hash]; ni; ni = ni->ni_hash_next) {
158 wlan_find_node(struct ieee80211_node_table *nt, const A_UINT8 *macaddr)
162 IEEE80211_NODE_LOCK(nt);
163 ni = _ieee80211_find_node(nt, macaddr);
164 IEEE80211_NODE_UNLOCK(nt);
174 wlan_node_reclaim(struct ieee80211_node_table *nt, bss_t *ni)
176 IEEE80211_NODE_LOCK(nt);
181 nt->nt_node_first = ni->ni_list_next;
191 nt->nt_node_last = ni->ni_list_prev;
203 nt->nt_hash[hash] = ni->ni_hash_next;
216 IEEE80211_NODE_UNLOCK(nt);
228 wlan_free_allnodes(struct ieee80211_node_table *nt)
232 while ((ni = nt->nt_node_first) != NULL) {
233 wlan_node_reclaim(nt, ni);
238 wlan_iterate_nodes(struct ieee80211_node_table *nt, wlan_node_iter_func *f,
244 gen = ++nt->nt_scangen;
246 IEEE80211_NODE_LOCK(nt);
247 for (ni = nt->nt_node_first; ni; ni = ni->ni_list_next) {
255 IEEE80211_NODE_UNLOCK(nt);
262 wlan_node_table_init(void *wmip, struct ieee80211_node_table *nt)
266 AR_DEBUG_PRINTF(ATH_DEBUG_WLAN, ("node table = 0x%x\n", (A_UINT32)nt));
267 IEEE80211_NODE_LOCK_INIT(nt);
269 nt->nt_node_first = nt->nt_node_last = NULL;
272 nt->nt_hash[i] = NULL;
274 A_INIT_TIMER(&nt->nt_inact_timer, wlan_node_timeout, nt);
275 nt->isTimerArmed = FALSE;
276 nt->nt_wmip = wmip;
282 struct ieee80211_node_table *nt = (struct ieee80211_node_table *)arg;
286 wmi_get_current_bssid(nt->nt_wmip, myBssid);
288 bss = nt->nt_node_first;
300 wlan_node_reclaim(nt, bss);
315 A_TIMEOUT_MS(&nt->nt_inact_timer, WLAN_NODE_INACT_TIMEOUT_MSEC, 0);
317 nt->isTimerArmed = reArmTimer;
321 wlan_node_table_cleanup(struct ieee80211_node_table *nt)
323 A_UNTIMEOUT(&nt->nt_inact_timer);
324 A_DELETE_TIMER(&nt->nt_inact_timer);
325 wlan_free_allnodes(nt);
326 IEEE80211_NODE_LOCK_DESTROY(nt);
330 wlan_find_Ssidnode (struct ieee80211_node_table *nt, A_UCHAR *pSsid,
336 IEEE80211_NODE_LOCK (nt);
338 for (ni = nt->nt_node_first; ni; ni = ni->ni_list_next) {
348 IEEE80211_NODE_UNLOCK (nt);
353 IEEE80211_NODE_UNLOCK (nt);
360 IEEE80211_NODE_UNLOCK (nt);
366 wlan_node_return (struct ieee80211_node_table *nt, bss_t *ni)
368 IEEE80211_NODE_LOCK (nt);
370 IEEE80211_NODE_UNLOCK (nt);