Skip to content

Commit

Permalink
brcmfmac: Update AP mode for GO creation.
Browse files Browse the repository at this point in the history
With this update it is possible to create an P2P go. Handle the
p2p go role in creation and the update beacon from cfg80211. Also
store primary bss in global struct. Needed to map cfg device
back to primary device.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Hante Meuleman authored and John W. Linville committed Feb 8, 2013
1 parent 89286dc commit a0f0795
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 86 deletions.
5 changes: 5 additions & 0 deletions drivers/net/wireless/brcm80211/brcmfmac/fwil_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,9 @@ struct brcmf_fil_chan_info_le {
__le32 scan_channel;
};

struct brcmf_fil_bss_enable_le {
__le32 bsscfg_idx;
__le32 enable;
};

#endif /* FWIL_TYPES_H_ */
6 changes: 4 additions & 2 deletions drivers/net/wireless/brcm80211/brcmfmac/p2p.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,15 +691,17 @@ void brcmf_p2p_cancel_remain_on_channel(struct brcmf_if *ifp)
*
* @cfg: driver private data for cfg80211 interface.
*/
void brcmf_p2p_attach(struct brcmf_cfg80211_info *cfg)
void brcmf_p2p_attach(struct brcmf_cfg80211_info *cfg,
struct brcmf_cfg80211_vif *vif)
{
struct brcmf_p2p_info *p2p;

p2p = &cfg->p2p;

p2p->cfg = cfg;
brcmf_p2p_set_firmware(p2p);
p2p->bss_idx[P2PAPI_BSSCFG_PRIMARY].vif = vif;
brcmf_p2p_generate_bss_mac(p2p);
brcmf_p2p_set_firmware(p2p);
}

/**
Expand Down
3 changes: 2 additions & 1 deletion drivers/net/wireless/brcm80211/brcmfmac/p2p.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ struct brcmf_p2p_info {
struct ieee80211_channel remain_on_channel;
};

void brcmf_p2p_attach(struct brcmf_cfg80211_info *cfg);
void brcmf_p2p_attach(struct brcmf_cfg80211_info *cfg,
struct brcmf_cfg80211_vif *vif);
void brcmf_p2p_detach(struct brcmf_p2p_info *p2p);
struct wireless_dev *brcmf_p2p_add_vif(struct wiphy *wiphy, const char *name,
enum nl80211_iftype type, u32 *flags,
Expand Down
Loading

0 comments on commit a0f0795

Please sign in to comment.