Lines Matching refs:beacon

145 				struct sk_buff *beacon, bool in_intr);
372 struct sk_buff *beacon; in zd_restore_settings() local
383 beacon_interval = mac->beacon.interval; in zd_restore_settings()
384 beacon_period = mac->beacon.period; in zd_restore_settings()
414 beacon = ieee80211_beacon_get(mac->hw, mac->vif); in zd_restore_settings()
415 if (beacon) in zd_restore_settings()
416 zd_mac_config_beacon(mac->hw, beacon, false); in zd_restore_settings()
423 mac->beacon.last_update = jiffies; in zd_restore_settings()
689 static bool zd_mac_match_cur_beacon(struct zd_mac *mac, struct sk_buff *beacon) in zd_mac_match_cur_beacon() argument
691 if (!mac->beacon.cur_beacon) in zd_mac_match_cur_beacon()
694 if (mac->beacon.cur_beacon->len != beacon->len) in zd_mac_match_cur_beacon()
697 return !memcmp(beacon->data, mac->beacon.cur_beacon->data, beacon->len); in zd_mac_match_cur_beacon()
704 kfree_skb(mac->beacon.cur_beacon); in zd_mac_free_cur_beacon_locked()
705 mac->beacon.cur_beacon = NULL; in zd_mac_free_cur_beacon_locked()
715 static int zd_mac_config_beacon(struct ieee80211_hw *hw, struct sk_buff *beacon, in zd_mac_config_beacon() argument
722 u32 full_len = beacon->len + 4; in zd_mac_config_beacon()
729 if (zd_mac_match_cur_beacon(mac, beacon)) { in zd_mac_config_beacon()
782 for (j = 0 ; j < beacon->len; j++) { in zd_mac_config_beacon()
784 ioreqs[req_pos].value = *((u8 *)(beacon->data + j)); in zd_mac_config_beacon()
831 mac->beacon.cur_beacon = beacon; in zd_mac_config_beacon()
832 beacon = NULL; in zd_mac_config_beacon()
843 kfree_skb(beacon); in zd_mac_config_beacon()
850 kfree_skb(beacon); in zd_mac_config_beacon()
1165 struct sk_buff *skb, *beacon; in zd_beacon_done() local
1185 beacon = ieee80211_beacon_get(mac->hw, mac->vif); in zd_beacon_done()
1186 if (beacon) in zd_beacon_done()
1187 zd_mac_config_beacon(mac->hw, beacon, true); in zd_beacon_done()
1190 mac->beacon.last_update = jiffies; in zd_beacon_done()
1308 struct sk_buff *beacon = ieee80211_beacon_get(hw, vif); in zd_op_bss_info_changed() local
1310 if (beacon) { in zd_op_bss_info_changed()
1312 zd_mac_config_beacon(hw, beacon, false); in zd_op_bss_info_changed()
1327 mac->beacon.period = period; in zd_op_bss_info_changed()
1328 mac->beacon.interval = interval; in zd_op_bss_info_changed()
1329 mac->beacon.last_update = jiffies; in zd_op_bss_info_changed()
1438 container_of(work, struct zd_mac, beacon.watchdog_work.work); in beacon_watchdog_handler()
1439 struct sk_buff *beacon; in beacon_watchdog_handler() local
1449 interval = mac->beacon.interval; in beacon_watchdog_handler()
1450 period = mac->beacon.period; in beacon_watchdog_handler()
1451 timeout = mac->beacon.last_update + in beacon_watchdog_handler()
1463 beacon = ieee80211_beacon_get(mac->hw, mac->vif); in beacon_watchdog_handler()
1464 if (beacon) { in beacon_watchdog_handler()
1467 zd_mac_config_beacon(mac->hw, beacon, false); in beacon_watchdog_handler()
1475 mac->beacon.last_update = jiffies; in beacon_watchdog_handler()
1480 queue_delayed_work(zd_workqueue, &mac->beacon.watchdog_work, in beacon_watchdog_handler()
1486 INIT_DELAYED_WORK(&mac->beacon.watchdog_work, beacon_watchdog_handler); in beacon_init()
1493 mac->beacon.last_update = jiffies; in beacon_enable()
1494 queue_delayed_work(zd_workqueue, &mac->beacon.watchdog_work, in beacon_enable()
1501 cancel_delayed_work_sync(&mac->beacon.watchdog_work); in beacon_disable()