|
@@ -6378,16 +6378,6 @@ err:
|
|
|
return -ENOMEM;
|
|
|
}
|
|
|
|
|
|
-static void brcmf_wiphy_pno_params(struct wiphy *wiphy)
|
|
|
-{
|
|
|
- /* scheduled scan settings */
|
|
|
- wiphy->max_sched_scan_reqs = 1;
|
|
|
- wiphy->max_sched_scan_ssids = BRCMF_PNO_MAX_PFN_COUNT;
|
|
|
- wiphy->max_match_sets = BRCMF_PNO_MAX_PFN_COUNT;
|
|
|
- wiphy->max_sched_scan_ie_len = BRCMF_SCAN_IE_LEN_MAX;
|
|
|
- wiphy->max_sched_scan_plan_interval = BRCMF_PNO_SCHED_SCAN_MAX_PERIOD;
|
|
|
-}
|
|
|
-
|
|
|
#ifdef CONFIG_PM
|
|
|
static const struct wiphy_wowlan_support brcmf_wowlan_support = {
|
|
|
.flags = WIPHY_WOWLAN_MAGIC_PKT | WIPHY_WOWLAN_DISCONNECT,
|
|
@@ -6434,6 +6424,7 @@ static int brcmf_setup_wiphy(struct wiphy *wiphy, struct brcmf_if *ifp)
|
|
|
const struct ieee80211_iface_combination *combo;
|
|
|
struct ieee80211_supported_band *band;
|
|
|
u16 max_interfaces = 0;
|
|
|
+ bool gscan;
|
|
|
__le32 bandlist[3];
|
|
|
u32 n_bands;
|
|
|
int err, i;
|
|
@@ -6483,9 +6474,10 @@ static int brcmf_setup_wiphy(struct wiphy *wiphy, struct brcmf_if *ifp)
|
|
|
wiphy->flags |= WIPHY_FLAG_SUPPORTS_FW_ROAM;
|
|
|
wiphy->mgmt_stypes = brcmf_txrx_stypes;
|
|
|
wiphy->max_remain_on_channel_duration = 5000;
|
|
|
- if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_PNO))
|
|
|
- brcmf_wiphy_pno_params(wiphy);
|
|
|
-
|
|
|
+ if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_PNO)) {
|
|
|
+ gscan = brcmf_feat_is_enabled(ifp, BRCMF_FEAT_GSCAN);
|
|
|
+ brcmf_pno_wiphy_params(wiphy, gscan);
|
|
|
+ }
|
|
|
/* vendor commands/events support */
|
|
|
wiphy->vendor_commands = brcmf_vendor_cmds;
|
|
|
wiphy->n_vendor_commands = BRCMF_VNDR_CMDS_LAST - 1;
|