2 * Copyright (c) 2015-2016 Quantenna Communications, Inc.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
17 #ifndef _QTN_FMAC_CFG80211_H_
18 #define _QTN_FMAC_CFG80211_H_
20 #include <net/cfg80211.h>
24 int qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac);
25 int qtnf_del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev);
26 void qtnf_cfg80211_vif_reset(struct qtnf_vif *vif);
27 void qtnf_band_init_rates(struct ieee80211_supported_band *band);
28 void qtnf_band_setup_htvht_caps(struct qtnf_mac_info *macinfo,
29 struct ieee80211_supported_band *band);
31 static inline void qtnf_scan_done(struct qtnf_wmac *mac, bool aborted)
33 struct cfg80211_scan_info info = {
37 mutex_lock(&mac->mac_lock);
40 cfg80211_scan_done(mac->scan_req, &info);
44 mutex_unlock(&mac->mac_lock);
47 #endif /* _QTN_FMAC_CFG80211_H_ */