diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-03-24 04:45:50 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-27 21:37:33 +0400 |
commit | 70268ce280e9e06c002383b1691d97276d8cd1fb (patch) | |
tree | 3ee733ddc765f79c51815d948d7383add3cf94bd /drivers/net/wireless/brcm80211/brcmsmac/main.h | |
parent | 39b2d36c8a4c670de569267a7aca168e37be620b (diff) | |
download | linux-70268ce280e9e06c002383b1691d97276d8cd1fb.tar.xz |
brcmsmac: add interface type to brcms_bss_cfg
This makes it possible to easily check in which mode the device is
currently running. This also adds a function to start station mode.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmsmac/main.h')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/main.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/main.h b/drivers/net/wireless/brcm80211/brcmsmac/main.h index fb447747c2c6..dbf027cd5d19 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/main.h +++ b/drivers/net/wireless/brcm80211/brcmsmac/main.h @@ -576,10 +576,17 @@ struct antsel_info { struct brcms_antselcfg antcfg_cur; /* current antenna config (auto) */ }; +enum brcms_bss_type { + BRCMS_TYPE_STATION, + BRCMS_TYPE_AP, + BRCMS_TYPE_ADHOC, +}; + /* * BSS configuration state * * wlc: wlc to which this bsscfg belongs to. + * type: interface type * up: is this configuration up operational * enable: is this configuration enabled * associated: is BSS in ASSOCIATED state @@ -599,6 +606,7 @@ struct antsel_info { */ struct brcms_bss_cfg { struct brcms_c_info *wlc; + enum brcms_bss_type type; bool up; bool enable; bool associated; |