Lines Matching refs:adapter
46 struct mwifiex_adapter *adapter = priv->adapter; in mwifiex_reset_connect_state() local
51 mwifiex_dbg(adapter, INFO, in mwifiex_reset_connect_state()
60 ISSUPP_TDLS_ENABLED(priv->adapter->fw_cap_info)) { in mwifiex_reset_connect_state()
63 if (priv->adapter->auto_tdls) in mwifiex_reset_connect_state()
109 mwifiex_dbg(adapter, INFO, in mwifiex_reset_connect_state()
113 mwifiex_dbg(adapter, INFO, in mwifiex_reset_connect_state()
128 adapter->tx_lock_flag = false; in mwifiex_reset_connect_state()
129 adapter->pps_uapsd_mode = false; in mwifiex_reset_connect_state()
131 if (adapter->is_cmd_timedout && adapter->curr_cmd) in mwifiex_reset_connect_state()
134 mwifiex_dbg(adapter, MSG, in mwifiex_reset_connect_state()
144 mwifiex_stop_net_dev_queue(priv->netdev, adapter); in mwifiex_reset_connect_state()
153 struct mwifiex_adapter *adapter = priv->adapter; in mwifiex_parse_tdls_event() local
156 (void *)event_skb->data + sizeof(adapter->event_cause); in mwifiex_parse_tdls_event()
161 sizeof(u16) - sizeof(adapter->event_cause))) { in mwifiex_parse_tdls_event()
162 mwifiex_dbg(adapter, ERROR, "Invalid event length!\n"); in mwifiex_parse_tdls_event()
168 mwifiex_dbg(adapter, ERROR, "cannot get sta entry!\n"); in mwifiex_parse_tdls_event()
181 mwifiex_dbg(adapter, EVENT, "tdls channel switch result :\n"); in mwifiex_parse_tdls_event()
182 mwifiex_dbg(adapter, EVENT, in mwifiex_parse_tdls_event()
225 mwifiex_dbg(adapter, EVENT, "tdls start channel switch...\n"); in mwifiex_parse_tdls_event()
229 mwifiex_dbg(adapter, EVENT, in mwifiex_parse_tdls_event()
248 mwifiex_dbg(priv->adapter, EVENT, in mwifiex_process_uap_tx_pause()
282 mwifiex_dbg(priv->adapter, EVENT, in mwifiex_process_sta_tx_pause()
293 if (!ISSUPP_TDLS_ENABLED(priv->adapter->fw_cap_info)) in mwifiex_process_sta_tx_pause()
317 struct mwifiex_adapter *adapter = priv->adapter; in mwifiex_process_multi_chan_event() local
328 mwifiex_dbg(adapter, ERROR, in mwifiex_process_multi_chan_event()
333 adapter->usb_mc_status = le16_to_cpu(chan_info->status); in mwifiex_process_multi_chan_event()
334 mwifiex_dbg(adapter, EVENT, "multi chan operation %s\n", in mwifiex_process_multi_chan_event()
335 adapter->usb_mc_status ? "started" : "over"); in mwifiex_process_multi_chan_event()
345 mwifiex_dbg(adapter, ERROR, "wrong tlv: tlvLen=%d,\t" in mwifiex_process_multi_chan_event()
350 mwifiex_dbg(adapter, ERROR, "wrong tlv type: 0x%x\n", in mwifiex_process_multi_chan_event()
360 intf_priv = mwifiex_get_priv_by_id(adapter, bss_num, in mwifiex_process_multi_chan_event()
363 mwifiex_dbg(adapter, ERROR, in mwifiex_process_multi_chan_event()
368 if (adapter->iface_type == MWIFIEX_USB) { in mwifiex_process_multi_chan_event()
384 if (adapter->iface_type == MWIFIEX_USB) { in mwifiex_process_multi_chan_event()
385 adapter->tx_lock_flag = true; in mwifiex_process_multi_chan_event()
386 adapter->usb_mc_setup = true; in mwifiex_process_multi_chan_event()
387 mwifiex_multi_chan_resync(adapter); in mwifiex_process_multi_chan_event()
399 mwifiex_dbg(priv->adapter, ERROR, in mwifiex_process_tx_pause_event()
413 mwifiex_dbg(priv->adapter, ERROR, in mwifiex_process_tx_pause_event()
439 struct mwifiex_adapter *adapter = priv->adapter; in mwifiex_bt_coex_wlan_param_update_event() local
458 adapter->coex_win_size = winsizetlv->coex_win_size; in mwifiex_bt_coex_wlan_param_update_event()
459 adapter->coex_tx_win_size = in mwifiex_bt_coex_wlan_param_update_event()
461 adapter->coex_rx_win_size = in mwifiex_bt_coex_wlan_param_update_event()
463 mwifiex_coex_ampdu_rxwinsize(adapter); in mwifiex_bt_coex_wlan_param_update_event()
464 mwifiex_update_ampdu_txwinsize(adapter); in mwifiex_bt_coex_wlan_param_update_event()
470 adapter->coex_scan = scantlv->coex_scan; in mwifiex_bt_coex_wlan_param_update_event()
471 adapter->coex_min_scan_time = scantlv->min_scan_time; in mwifiex_bt_coex_wlan_param_update_event()
472 adapter->coex_max_scan_time = scantlv->max_scan_time; in mwifiex_bt_coex_wlan_param_update_event()
484 dev_dbg(adapter->dev, "coex_scan=%d min_scan=%d coex_win=%d, tx_win=%d rx_win=%d\n", in mwifiex_bt_coex_wlan_param_update_event()
485 adapter->coex_scan, adapter->coex_min_scan_time, in mwifiex_bt_coex_wlan_param_update_event()
486 adapter->coex_win_size, adapter->coex_tx_win_size, in mwifiex_bt_coex_wlan_param_update_event()
487 adapter->coex_rx_win_size); in mwifiex_bt_coex_wlan_param_update_event()
543 struct mwifiex_adapter *adapter = priv->adapter; in mwifiex_process_sta_event() local
545 u32 eventcause = adapter->event_cause; in mwifiex_process_sta_event()
550 mwifiex_dbg(adapter, ERROR, in mwifiex_process_sta_event()
554 mwifiex_dbg(adapter, EVENT, "event: LINK_SENSED\n"); in mwifiex_process_sta_event()
557 mwifiex_wake_up_net_dev_queue(priv->netdev, adapter); in mwifiex_process_sta_event()
561 mwifiex_dbg(adapter, EVENT, "event: Deauthenticated\n"); in mwifiex_process_sta_event()
563 mwifiex_dbg(adapter, INFO, in mwifiex_process_sta_event()
567 adapter->dbg.num_event_deauth++; in mwifiex_process_sta_event()
570 le16_to_cpu(*(__le16 *)adapter->event_body); in mwifiex_process_sta_event()
576 mwifiex_dbg(adapter, EVENT, "event: Disassociated\n"); in mwifiex_process_sta_event()
578 mwifiex_dbg(adapter, INFO, in mwifiex_process_sta_event()
582 adapter->dbg.num_event_disassoc++; in mwifiex_process_sta_event()
585 le16_to_cpu(*(__le16 *)adapter->event_body); in mwifiex_process_sta_event()
591 mwifiex_dbg(adapter, EVENT, "event: Link lost\n"); in mwifiex_process_sta_event()
592 adapter->dbg.num_event_link_lost++; in mwifiex_process_sta_event()
595 le16_to_cpu(*(__le16 *)adapter->event_body); in mwifiex_process_sta_event()
601 mwifiex_dbg(adapter, EVENT, "info: EVENT: SLEEP\n"); in mwifiex_process_sta_event()
603 adapter->ps_state = PS_STATE_PRE_SLEEP; in mwifiex_process_sta_event()
605 mwifiex_check_ps_cond(adapter); in mwifiex_process_sta_event()
609 mwifiex_dbg(adapter, EVENT, "info: EVENT: AWAKE\n"); in mwifiex_process_sta_event()
610 if (!adapter->pps_uapsd_mode && priv->port_open && in mwifiex_process_sta_event()
611 priv->media_connected && adapter->sleep_period.period) { in mwifiex_process_sta_event()
612 adapter->pps_uapsd_mode = true; in mwifiex_process_sta_event()
613 mwifiex_dbg(adapter, EVENT, in mwifiex_process_sta_event()
616 adapter->tx_lock_flag = false; in mwifiex_process_sta_event()
617 if (adapter->pps_uapsd_mode && adapter->gen_null_pkt) { in mwifiex_process_sta_event()
619 if (adapter->data_sent || in mwifiex_process_sta_event()
620 (adapter->if_ops.is_port_ready && in mwifiex_process_sta_event()
621 !adapter->if_ops.is_port_ready(priv))) { in mwifiex_process_sta_event()
622 adapter->ps_state = PS_STATE_AWAKE; in mwifiex_process_sta_event()
623 adapter->pm_wakeup_card_req = false; in mwifiex_process_sta_event()
624 adapter->pm_wakeup_fw_try = false; in mwifiex_process_sta_event()
625 del_timer(&adapter->wakeup_timer); in mwifiex_process_sta_event()
632 adapter->ps_state = in mwifiex_process_sta_event()
637 adapter->ps_state = PS_STATE_AWAKE; in mwifiex_process_sta_event()
638 adapter->pm_wakeup_card_req = false; in mwifiex_process_sta_event()
639 adapter->pm_wakeup_fw_try = false; in mwifiex_process_sta_event()
640 del_timer(&adapter->wakeup_timer); in mwifiex_process_sta_event()
645 adapter->if_ops.wakeup_complete(adapter); in mwifiex_process_sta_event()
646 mwifiex_dbg(adapter, EVENT, "event: DS_AWAKE\n"); in mwifiex_process_sta_event()
647 if (adapter->is_deep_sleep) in mwifiex_process_sta_event()
648 adapter->is_deep_sleep = false; in mwifiex_process_sta_event()
652 mwifiex_dbg(adapter, EVENT, "event: HS_ACT_REQ\n"); in mwifiex_process_sta_event()
658 mwifiex_dbg(adapter, EVENT, "event: UNICAST MIC ERROR\n"); in mwifiex_process_sta_event()
665 mwifiex_dbg(adapter, EVENT, "event: MULTICAST MIC ERROR\n"); in mwifiex_process_sta_event()
675 mwifiex_dbg(adapter, EVENT, "event: ADHOC_BCN_LOST\n"); in mwifiex_process_sta_event()
678 mwifiex_stop_net_dev_queue(priv->netdev, adapter); in mwifiex_process_sta_event()
684 mwifiex_dbg(adapter, EVENT, "event: BGS_REPORT\n"); in mwifiex_process_sta_event()
690 mwifiex_dbg(adapter, EVENT, "event: PORT RELEASE\n"); in mwifiex_process_sta_event()
695 mwifiex_dbg(adapter, EVENT, "event: EXT_SCAN Report\n"); in mwifiex_process_sta_event()
696 if (adapter->ext_scan) in mwifiex_process_sta_event()
698 adapter->event_skb->data); in mwifiex_process_sta_event()
703 mwifiex_dbg(adapter, EVENT, "event: WMM status changed\n"); in mwifiex_process_sta_event()
715 mwifiex_dbg(adapter, EVENT, "event: Beacon RSSI_LOW\n"); in mwifiex_process_sta_event()
718 mwifiex_dbg(adapter, EVENT, "event: Beacon SNR_LOW\n"); in mwifiex_process_sta_event()
721 mwifiex_dbg(adapter, EVENT, "event: MAX_FAIL\n"); in mwifiex_process_sta_event()
730 mwifiex_dbg(adapter, EVENT, "event: Beacon RSSI_HIGH\n"); in mwifiex_process_sta_event()
733 mwifiex_dbg(adapter, EVENT, "event: Beacon SNR_HIGH\n"); in mwifiex_process_sta_event()
736 mwifiex_dbg(adapter, EVENT, "event: Data RSSI_LOW\n"); in mwifiex_process_sta_event()
739 mwifiex_dbg(adapter, EVENT, "event: Data SNR_LOW\n"); in mwifiex_process_sta_event()
742 mwifiex_dbg(adapter, EVENT, "event: Data RSSI_HIGH\n"); in mwifiex_process_sta_event()
745 mwifiex_dbg(adapter, EVENT, "event: Data SNR_HIGH\n"); in mwifiex_process_sta_event()
748 mwifiex_dbg(adapter, EVENT, "event: Link Quality\n"); in mwifiex_process_sta_event()
751 mwifiex_dbg(adapter, EVENT, "event: Pre-Beacon Lost\n"); in mwifiex_process_sta_event()
754 mwifiex_dbg(adapter, EVENT, "event: IBSS_COALESCED\n"); in mwifiex_process_sta_event()
760 mwifiex_dbg(adapter, EVENT, "event: ADDBA Request\n"); in mwifiex_process_sta_event()
763 adapter->event_body, false); in mwifiex_process_sta_event()
766 mwifiex_dbg(adapter, EVENT, "event: DELBA Request\n"); in mwifiex_process_sta_event()
767 mwifiex_11n_delete_ba_stream(priv, adapter->event_body); in mwifiex_process_sta_event()
770 mwifiex_dbg(adapter, EVENT, "event: BA Stream timeout\n"); in mwifiex_process_sta_event()
774 adapter->event_body); in mwifiex_process_sta_event()
777 ctrl = le16_to_cpu(*(__le16 *)adapter->event_body); in mwifiex_process_sta_event()
778 mwifiex_dbg(adapter, EVENT, in mwifiex_process_sta_event()
781 adapter->tx_buf_size = in mwifiex_process_sta_event()
782 min_t(u16, adapter->curr_tx_buf_size, ctrl); in mwifiex_process_sta_event()
783 mwifiex_dbg(adapter, EVENT, "event: tx_buf_size %d\n", in mwifiex_process_sta_event()
784 adapter->tx_buf_size); in mwifiex_process_sta_event()
788 mwifiex_dbg(adapter, EVENT, "event: WEP ICV error\n"); in mwifiex_process_sta_event()
792 mwifiex_dbg(adapter, EVENT, "event: BW Change\n"); in mwifiex_process_sta_event()
796 mwifiex_dbg(adapter, EVENT, in mwifiex_process_sta_event()
801 mwifiex_dbg(adapter, EVENT, in mwifiex_process_sta_event()
813 mwifiex_dbg(adapter, EVENT, "event: Channel Switch Announcement\n"); in mwifiex_process_sta_event()
824 ret = mwifiex_parse_tdls_event(priv, adapter->event_skb); in mwifiex_process_sta_event()
828 mwifiex_dbg(adapter, EVENT, "event: TX DATA PAUSE\n"); in mwifiex_process_sta_event()
829 mwifiex_process_tx_pause_event(priv, adapter->event_skb); in mwifiex_process_sta_event()
833 mwifiex_dbg(adapter, EVENT, "event: multi-chan info\n"); in mwifiex_process_sta_event()
834 mwifiex_process_multi_chan_event(priv, adapter->event_skb); in mwifiex_process_sta_event()
838 mwifiex_dbg(adapter, EVENT, "event: TX_STATUS Report\n"); in mwifiex_process_sta_event()
839 mwifiex_parse_tx_status_event(priv, adapter->event_body); in mwifiex_process_sta_event()
843 mwifiex_dbg(adapter, EVENT, "event: Channel Report\n"); in mwifiex_process_sta_event()
845 adapter->event_skb); in mwifiex_process_sta_event()
848 mwifiex_dbg(adapter, EVENT, "event: Radar detected\n"); in mwifiex_process_sta_event()
850 adapter->event_skb); in mwifiex_process_sta_event()
853 dev_dbg(adapter->dev, "EVENT: BT coex wlan param update\n"); in mwifiex_process_sta_event()
855 adapter->event_skb); in mwifiex_process_sta_event()
858 mwifiex_dbg(adapter, ERROR, "event: unknown event id: %#x\n", in mwifiex_process_sta_event()