• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/net/mac80211/

Lines Matching refs:ifmgd

83 static inline void ASSERT_MGD_MTX(struct ieee80211_if_managed *ifmgd)
85 WARN_ON(!mutex_is_locked(&ifmgd->mtx));
98 static void run_again(struct ieee80211_if_managed *ifmgd,
101 ASSERT_MGD_MTX(ifmgd);
103 if (!timer_pending(&ifmgd->timer) ||
104 time_before(timeout, ifmgd->timer.expires))
105 mod_timer(&ifmgd->timer, timeout);
119 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
127 ifmgd->probe_send_count = 0;
230 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
262 if (!(ifmgd->flags & IEEE80211_STA_MFP_ENABLED))
344 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
349 mutex_lock(&ifmgd->mtx);
350 if (!ifmgd->associated)
360 ifmgd->associated->channel = sdata->local->oper_channel;
365 ifmgd->flags &= ~IEEE80211_STA_CSA_RECEIVED;
366 mutex_unlock(&ifmgd->mtx);
372 struct ieee80211_if_managed *ifmgd;
375 ifmgd = &sdata->u.mgd;
388 ieee80211_queue_work(&sdata->local->hw, &ifmgd->chswitch_work);
396 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
399 set_bit(TMR_RUNNING_CHANSW, &ifmgd->timers_running);
403 ieee80211_queue_work(&sdata->local->hw, &ifmgd->chswitch_work);
414 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
417 ASSERT_MGD_MTX(ifmgd);
419 if (!ifmgd->associated)
428 if (ifmgd->flags & IEEE80211_STA_CSA_RECEIVED)
449 ifmgd->flags |= IEEE80211_STA_CSA_RECEIVED;
456 ieee80211_queue_work(&sdata->local->hw, &ifmgd->chswitch_work);
461 ifmgd->flags |= IEEE80211_STA_CSA_RECEIVED;
462 mod_timer(&ifmgd->chswitch_timer,
675 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
685 (!(ifmgd->flags & IEEE80211_STA_NULLFUNC_ACKED)))
690 (ifmgd->flags & IEEE80211_STA_NULLFUNC_ACKED)) {
691 ifmgd->flags &= ~IEEE80211_STA_NULLFUNC_ACKED;
713 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
730 if (ifmgd->flags & IEEE80211_STA_UAPSD_ENABLED)
734 if (count == ifmgd->wmm_last_param_set)
736 ifmgd->wmm_last_param_set = count;
922 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
928 ASSERT_MGD_MTX(ifmgd);
930 if (WARN_ON(!ifmgd->associated))
933 memcpy(bssid, ifmgd->associated->bssid, ETH_ALEN);
935 ifmgd->associated = NULL;
936 memset(ifmgd->bssid, 0, ETH_ALEN);
1022 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
1024 u8 *dst = ifmgd->associated->bssid;
1032 if (ifmgd->probe_send_count >= unicast_limit)
1035 ssid = ieee80211_bss_get_ie(ifmgd->associated, WLAN_EID_SSID);
1038 ifmgd->probe_send_count++;
1039 ifmgd->probe_timeout = jiffies + IEEE80211_PROBE_WAIT;
1040 run_again(ifmgd, ifmgd->probe_timeout);
1046 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
1058 mutex_lock(&ifmgd->mtx);
1060 if (!ifmgd->associated)
1080 if (ifmgd->flags & (IEEE80211_STA_BEACON_POLL |
1085 ifmgd->flags |= IEEE80211_STA_BEACON_POLL;
1087 ifmgd->flags |= IEEE80211_STA_CONNECTION_POLL;
1096 ifmgd->probe_send_count = 0;
1099 mutex_unlock(&ifmgd->mtx);
1104 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
1108 mutex_lock(&ifmgd->mtx);
1109 if (!ifmgd->associated) {
1110 mutex_unlock(&ifmgd->mtx);
1114 memcpy(bssid, ifmgd->associated->bssid, ETH_ALEN);
1120 mutex_unlock(&ifmgd->mtx);
1172 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
1179 ASSERT_MGD_MTX(ifmgd);
1181 bssid = ifmgd->associated->bssid;
1199 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
1205 ASSERT_MGD_MTX(ifmgd);
1207 if (WARN_ON(!ifmgd->associated))
1210 if (WARN_ON(memcmp(ifmgd->associated->bssid, mgmt->sa, ETH_ALEN)))
1228 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
1262 ifmgd->aid = aid;
1273 if (!(ifmgd->flags & IEEE80211_STA_CONTROL_PORT))
1324 if (elems.ht_cap_elem && !(ifmgd->flags & IEEE80211_STA_DISABLE_11N))
1332 if (ifmgd->flags & IEEE80211_STA_MFP_ENABLED)
1356 !(ifmgd->flags & IEEE80211_STA_DISABLE_11N))
1370 if (ifmgd->use_4addr)
1442 struct ieee80211_if_managed *ifmgd;
1447 ifmgd = &sdata->u.mgd;
1449 ASSERT_MGD_MTX(ifmgd);
1463 if (ifmgd->associated &&
1464 memcmp(mgmt->bssid, ifmgd->associated->bssid, ETH_ALEN) == 0 &&
1465 ifmgd->flags & (IEEE80211_STA_BEACON_POLL |
1467 ifmgd->flags &= ~(IEEE80211_STA_CONNECTION_POLL |
1483 mod_timer(&ifmgd->conn_mon_timer,
1502 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
1513 ASSERT_MGD_MTX(ifmgd);
1527 if (!ifmgd->associated)
1530 bssid = ifmgd->associated->bssid;
1540 ifmgd->last_beacon_signal = rx_status->signal;
1541 if (ifmgd->flags & IEEE80211_STA_RESET_SIGNAL_AVE) {
1542 ifmgd->flags &= ~IEEE80211_STA_RESET_SIGNAL_AVE;
1543 ifmgd->ave_beacon_signal = rx_status->signal * 16;
1544 ifmgd->last_cqm_event_signal = 0;
1546 ifmgd->ave_beacon_signal =
1549 ifmgd->ave_beacon_signal) / 16;
1553 int sig = ifmgd->ave_beacon_signal / 16;
1554 int last_event = ifmgd->last_cqm_event_signal;
1559 ifmgd->last_cqm_event_signal = sig;
1566 ifmgd->last_cqm_event_signal = sig;
1574 if (ifmgd->flags & IEEE80211_STA_BEACON_POLL) {
1581 ifmgd->flags &= ~IEEE80211_STA_BEACON_POLL;
1600 ifmgd->aid);
1602 if (ncrc != ifmgd->beacon_crc) {
1633 if (ncrc == ifmgd->beacon_crc)
1635 ifmgd->beacon_crc = ncrc;
1649 !(ifmgd->flags & IEEE80211_STA_DISABLE_11N)) {
1691 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
1701 mutex_lock(&ifmgd->mtx);
1703 if (ifmgd->associated &&
1704 memcmp(ifmgd->associated->bssid, mgmt->bssid, ETH_ALEN) == 0) {
1724 (void *)ifmgd->associated->priv,
1729 mutex_unlock(&ifmgd->mtx);
1747 mutex_unlock(&ifmgd->mtx);
1796 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
1800 set_bit(TMR_RUNNING_TIMER, &ifmgd->timers_running);
1810 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
1813 mutex_lock(&ifmgd->mtx);
1815 if (ifmgd->flags & (IEEE80211_STA_BEACON_POLL |
1817 ifmgd->associated) {
1820 memcpy(bssid, ifmgd->associated->bssid, ETH_ALEN);
1821 if (time_is_after_jiffies(ifmgd->probe_timeout))
1822 run_again(ifmgd, ifmgd->probe_timeout);
1824 else if (ifmgd->probe_send_count < IEEE80211_MAX_PROBE_TRIES) {
1829 ifmgd->probe_send_count);
1837 ifmgd->flags &= ~(IEEE80211_STA_CONNECTION_POLL |
1844 mutex_unlock(&ifmgd->mtx);
1853 mutex_lock(&ifmgd->mtx);
1857 mutex_unlock(&ifmgd->mtx);
1877 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
1883 ieee80211_queue_work(&local->hw, &ifmgd->monitor_work);
1912 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
1920 cancel_work_sync(&ifmgd->beacon_connection_loss_work);
1921 if (del_timer_sync(&ifmgd->timer))
1922 set_bit(TMR_RUNNING_TIMER, &ifmgd->timers_running);
1924 cancel_work_sync(&ifmgd->chswitch_work);
1925 if (del_timer_sync(&ifmgd->chswitch_timer))
1926 set_bit(TMR_RUNNING_CHANSW, &ifmgd->timers_running);
1928 cancel_work_sync(&ifmgd->monitor_work);
1930 del_timer_sync(&ifmgd->conn_mon_timer);
1931 del_timer_sync(&ifmgd->bcn_mon_timer);
1936 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
1938 if (test_and_clear_bit(TMR_RUNNING_TIMER, &ifmgd->timers_running))
1939 add_timer(&ifmgd->timer);
1940 if (test_and_clear_bit(TMR_RUNNING_CHANSW, &ifmgd->timers_running))
1941 add_timer(&ifmgd->chswitch_timer);
1948 struct ieee80211_if_managed *ifmgd;
1950 ifmgd = &sdata->u.mgd;
1951 INIT_WORK(&ifmgd->monitor_work, ieee80211_sta_monitor_work);
1952 INIT_WORK(&ifmgd->chswitch_work, ieee80211_chswitch_work);
1953 INIT_WORK(&ifmgd->beacon_connection_loss_work,
1955 setup_timer(&ifmgd->timer, ieee80211_sta_timer,
1957 setup_timer(&ifmgd->bcn_mon_timer, ieee80211_sta_bcn_mon_timer,
1959 setup_timer(&ifmgd->conn_mon_timer, ieee80211_sta_conn_mon_timer,
1961 setup_timer(&ifmgd->chswitch_timer, ieee80211_chswitch_timer,
1964 ifmgd->flags = 0;
1966 mutex_init(&ifmgd->mtx);
1969 ifmgd->req_smps = IEEE80211_SMPS_AUTOMATIC;
1971 ifmgd->req_smps = IEEE80211_SMPS_OFF;
2140 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
2146 mutex_lock(&ifmgd->mtx);
2147 if (ifmgd->associated) {
2149 memcmp(req->prev_bssid, ifmgd->associated->bssid,
2156 mutex_unlock(&ifmgd->mtx);
2163 mutex_unlock(&ifmgd->mtx);
2169 ifmgd->flags &= ~IEEE80211_STA_DISABLE_11N;
2170 ifmgd->flags &= ~IEEE80211_STA_NULLFUNC_ACKED;
2176 ifmgd->flags |= IEEE80211_STA_DISABLE_11N;
2190 if (ifmgd->req_smps == IEEE80211_SMPS_AUTOMATIC) {
2191 if (ifmgd->powersave)
2192 ifmgd->ap_smps = IEEE80211_SMPS_DYNAMIC;
2194 ifmgd->ap_smps = IEEE80211_SMPS_OFF;
2196 ifmgd->ap_smps = ifmgd->req_smps;
2198 wk->assoc.smps = ifmgd->ap_smps;
2206 wk->assoc.use_11n = !(ifmgd->flags & IEEE80211_STA_DISABLE_11N);
2217 ifmgd->flags |= IEEE80211_STA_UAPSD_ENABLED;
2220 ifmgd->flags &= ~IEEE80211_STA_UAPSD_ENABLED;
2240 ifmgd->mfp = IEEE80211_MFP_REQUIRED;
2241 ifmgd->flags |= IEEE80211_STA_MFP_ENABLED;
2243 ifmgd->mfp = IEEE80211_MFP_DISABLED;
2244 ifmgd->flags &= ~IEEE80211_STA_MFP_ENABLED;
2248 ifmgd->flags |= IEEE80211_STA_CONTROL_PORT;
2250 ifmgd->flags &= ~IEEE80211_STA_CONTROL_PORT;
2261 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
2266 mutex_lock(&ifmgd->mtx);
2269 if (ifmgd->associated == req->bss) {
2271 mutex_unlock(&ifmgd->mtx);
2276 mutex_unlock(&ifmgd->mtx);
2331 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
2334 mutex_lock(&ifmgd->mtx);
2342 if (ifmgd->associated != req->bss) {
2343 mutex_unlock(&ifmgd->mtx);
2353 mutex_unlock(&ifmgd->mtx);