aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/872-brcmsmac-activate-AP-support.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-03-24 00:53:15 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2013-03-24 00:53:15 +0000
commit72b5d58a2a25b47122e2b9fe96fcc9822af2ccf1 (patch)
treeeea85b6d34de53fa74bdbef0c092991a92afa7ab /package/mac80211/patches/872-brcmsmac-activate-AP-support.patch
parent513de712f95b37b55c5dba759893a1d8e74ea438 (diff)
downloadupstream-72b5d58a2a25b47122e2b9fe96fcc9822af2ccf1.tar.gz
upstream-72b5d58a2a25b47122e2b9fe96fcc9822af2ccf1.tar.bz2
upstream-72b5d58a2a25b47122e2b9fe96fcc9822af2ccf1.zip
mac80211: update brcmsmac ap patches
SVN-Revision: 36113
Diffstat (limited to 'package/mac80211/patches/872-brcmsmac-activate-AP-support.patch')
-rw-r--r--package/mac80211/patches/872-brcmsmac-activate-AP-support.patch74
1 files changed, 0 insertions, 74 deletions
diff --git a/package/mac80211/patches/872-brcmsmac-activate-AP-support.patch b/package/mac80211/patches/872-brcmsmac-activate-AP-support.patch
deleted file mode 100644
index aaf6840c56..0000000000
--- a/package/mac80211/patches/872-brcmsmac-activate-AP-support.patch
+++ /dev/null
@@ -1,74 +0,0 @@
---- a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c
-+++ b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c
-@@ -360,7 +360,8 @@ brcms_ops_add_interface(struct ieee80211
- struct brcms_info *wl = hw->priv;
-
- /* Just STA for now */
-- if (vif->type != NL80211_IFTYPE_STATION) {
-+ if (vif->type != NL80211_IFTYPE_STATION &&
-+ vif->type != NL80211_IFTYPE_AP) {
- brcms_err(wl->wlc->hw->d11core,
- "%s: Attempt to add type %d, only STA for now\n",
- __func__, vif->type);
-@@ -372,6 +373,9 @@ brcms_ops_add_interface(struct ieee80211
- brcms_c_mute(wl->wlc, false);
- if (vif->type == NL80211_IFTYPE_STATION)
- brcms_c_start_station(wl->wlc, vif->addr);
-+ else if (vif->type == NL80211_IFTYPE_AP)
-+ brcms_c_start_ap(wl->wlc, vif->addr, vif->bss_conf.bssid,
-+ vif->bss_conf.ssid, vif->bss_conf.ssid_len);
- spin_unlock_bh(&wl->lock);
-
- return 0;
-@@ -1046,7 +1050,8 @@ static int ieee_hw_init(struct ieee80211
-
- /* channel change time is dependent on chip and band */
- hw->channel_change_time = 7 * 1000;
-- hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);
-+ hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) |
-+ BIT(NL80211_IFTYPE_AP);
-
- hw->wiphy->flags |= WIPHY_FLAG_AP_PROBE_RESP_OFFLOAD;
-
---- a/drivers/net/wireless/brcm80211/brcmsmac/main.c
-+++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c
-@@ -2176,6 +2176,18 @@ void brcms_c_start_station(struct brcms_
- wlc->bsscfg->type = BRCMS_TYPE_STATION;
- }
-
-+void brcms_c_start_ap(struct brcms_c_info *wlc, u8 *addr, const u8 *bssid,
-+ u8 *ssid, size_t ssid_len)
-+{
-+ brcms_c_set_ssid(wlc, ssid, ssid_len);
-+
-+ memcpy(wlc->pub->cur_etheraddr, addr, sizeof(wlc->pub->cur_etheraddr));
-+ memcpy(wlc->bsscfg->BSSID, bssid, sizeof(wlc->bsscfg->BSSID));
-+ wlc->bsscfg->type = BRCMS_TYPE_AP;
-+
-+ brcms_b_mctrl(wlc->hw, MCTL_AP | MCTL_INFRA, MCTL_AP | MCTL_INFRA);
-+}
-+
- /* Initialize GPIOs that are controlled by D11 core */
- static void brcms_c_gpio_init(struct brcms_c_info *wlc)
- {
-@@ -3064,6 +3076,9 @@ static bool brcms_c_ps_allowed(struct br
- if (wlc->filter_flags & FIF_PROMISC_IN_BSS)
- return false;
-
-+ if (wlc->bsscfg->type == BRCMS_TYPE_AP)
-+ return false;
-+
- return true;
- }
-
---- a/drivers/net/wireless/brcm80211/brcmsmac/pub.h
-+++ b/drivers/net/wireless/brcm80211/brcmsmac/pub.h
-@@ -332,6 +332,8 @@ extern bool brcms_c_check_radio_disabled
- extern void brcms_c_mute(struct brcms_c_info *wlc, bool on);
- extern bool brcms_c_tx_flush_completed(struct brcms_c_info *wlc);
- extern void brcms_c_start_station(struct brcms_c_info *wlc, u8 *addr);
-+extern void brcms_c_start_ap(struct brcms_c_info *wlc, u8 *addr,
-+ const u8 *bssid, u8 *ssid, size_t ssid_len);
- extern void brcms_c_update_beacon(struct brcms_c_info *wlc);
- extern void brcms_c_set_new_beacon(struct brcms_c_info *wlc,
- struct sk_buff *beacon, u16 tim_offset,