wmi.c (9095bf25ea08135a5b74875dd0e3eeaddc4218a0) | wmi.c (b34939b9836950d261610132853311054b507247) |
---|---|
1/* 2 * Copyright (c) 2004-2011 Atheros Communications Inc. 3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 1068 unchanged lines hidden (view full) --- 1077 1078 return 0; 1079} 1080 1081void ath6kl_wmi_sscan_timer(unsigned long ptr) 1082{ 1083 struct ath6kl_vif *vif = (struct ath6kl_vif *) ptr; 1084 | 1/* 2 * Copyright (c) 2004-2011 Atheros Communications Inc. 3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 1068 unchanged lines hidden (view full) --- 1077 1078 return 0; 1079} 1080 1081void ath6kl_wmi_sscan_timer(unsigned long ptr) 1082{ 1083 struct ath6kl_vif *vif = (struct ath6kl_vif *) ptr; 1084 |
1085 cfg80211_sched_scan_results(vif->ar->wiphy); | 1085 cfg80211_sched_scan_results(vif->ar->wiphy, 0); |
1086} 1087 1088static int ath6kl_wmi_bssinfo_event_rx(struct wmi *wmi, u8 *datap, int len, 1089 struct ath6kl_vif *vif) 1090{ 1091 struct wmi_bss_info_hdr2 *bih; 1092 u8 *buf; 1093 struct ieee80211_channel *channel; --- 497 unchanged lines hidden (view full) --- 1591 1592 if (vif->sme_state != SME_CONNECTED) 1593 return -ENOTCONN; 1594 1595 ev = (struct wmi_txe_notify_event *) datap; 1596 rate = le32_to_cpu(ev->rate); 1597 pkts = le32_to_cpu(ev->pkts); 1598 | 1086} 1087 1088static int ath6kl_wmi_bssinfo_event_rx(struct wmi *wmi, u8 *datap, int len, 1089 struct ath6kl_vif *vif) 1090{ 1091 struct wmi_bss_info_hdr2 *bih; 1092 u8 *buf; 1093 struct ieee80211_channel *channel; --- 497 unchanged lines hidden (view full) --- 1591 1592 if (vif->sme_state != SME_CONNECTED) 1593 return -ENOTCONN; 1594 1595 ev = (struct wmi_txe_notify_event *) datap; 1596 rate = le32_to_cpu(ev->rate); 1597 pkts = le32_to_cpu(ev->pkts); 1598 |
1599 ath6kl_dbg(ATH6KL_DBG_WMI, "TXE notify event: peer %pM rate %d% pkts %d intvl %ds\n", | 1599 ath6kl_dbg(ATH6KL_DBG_WMI, "TXE notify event: peer %pM rate %d%% pkts %d intvl %ds\n", |
1600 vif->bssid, rate, pkts, vif->txe_intvl); 1601 1602 cfg80211_cqm_txe_notify(vif->ndev, vif->bssid, pkts, 1603 rate, vif->txe_intvl, GFP_KERNEL); 1604 1605 return 0; 1606} 1607 --- 2563 unchanged lines hidden --- | 1600 vif->bssid, rate, pkts, vif->txe_intvl); 1601 1602 cfg80211_cqm_txe_notify(vif->ndev, vif->bssid, pkts, 1603 rate, vif->txe_intvl, GFP_KERNEL); 1604 1605 return 0; 1606} 1607 --- 2563 unchanged lines hidden --- |