Commit 1f170110 authored by Hante Meuleman's avatar Hante Meuleman Committed by John W. Linville

brcmfmac: Use struct brcmf_if in brcmf_configure_opensecurity.

Reviewed-by: default avatarArend Van Spriel <arend@broadcom.com>
Signed-off-by: default avatarHante Meuleman <meuleman@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4412f6cb
...@@ -2968,9 +2968,8 @@ static int brcmf_cfg80211_testmode(struct wiphy *wiphy, void *data, int len) ...@@ -2968,9 +2968,8 @@ static int brcmf_cfg80211_testmode(struct wiphy *wiphy, void *data, int len)
} }
#endif #endif
static s32 brcmf_configure_opensecurity(struct net_device *ndev, s32 bssidx) static s32 brcmf_configure_opensecurity(struct brcmf_if *ifp)
{ {
struct brcmf_if *ifp = netdev_priv(ndev);
s32 err; s32 err;
/* set auth */ /* set auth */
...@@ -3433,7 +3432,6 @@ brcmf_cfg80211_start_ap(struct wiphy *wiphy, struct net_device *ndev, ...@@ -3433,7 +3432,6 @@ brcmf_cfg80211_start_ap(struct wiphy *wiphy, struct net_device *ndev,
struct brcmf_tlv *rsn_ie; struct brcmf_tlv *rsn_ie;
struct brcmf_vs_tlv *wpa_ie; struct brcmf_vs_tlv *wpa_ie;
struct brcmf_join_params join_params; struct brcmf_join_params join_params;
s32 bssidx = 0;
brcmf_dbg(TRACE, "channel_type=%d, beacon_interval=%d, dtim_period=%d,\n", brcmf_dbg(TRACE, "channel_type=%d, beacon_interval=%d, dtim_period=%d,\n",
cfg80211_get_chandef_type(&settings->chandef), cfg80211_get_chandef_type(&settings->chandef),
...@@ -3507,7 +3505,7 @@ brcmf_cfg80211_start_ap(struct wiphy *wiphy, struct net_device *ndev, ...@@ -3507,7 +3505,7 @@ brcmf_cfg80211_start_ap(struct wiphy *wiphy, struct net_device *ndev,
} }
} else { } else {
brcmf_dbg(TRACE, "No WPA(2) IEs found\n"); brcmf_dbg(TRACE, "No WPA(2) IEs found\n");
brcmf_configure_opensecurity(ndev, bssidx); brcmf_configure_opensecurity(ifp);
} }
/* Set Beacon IEs to FW */ /* Set Beacon IEs to FW */
err = brcmf_vif_set_mgmt_ie(ndev_to_vif(ndev), err = brcmf_vif_set_mgmt_ie(ndev_to_vif(ndev),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment