summaryrefslogtreecommitdiffstats
path: root/sys/dev/ipw
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-05-12 00:15:30 +0000
committersam <sam@FreeBSD.org>2008-05-12 00:15:30 +0000
commitf663b621286051ac42452779cf814624994dae88 (patch)
tree3cf79416d2ad19b6945f31a06a6e43e73f0d5527 /sys/dev/ipw
parent544a240c14d88ab9e4515a136add5e80481a9d28 (diff)
downloadFreeBSD-src-f663b621286051ac42452779cf814624994dae88.zip
FreeBSD-src-f663b621286051ac42452779cf814624994dae88.tar.gz
Minor cleanup of vap create work:
o add IEEE80211_C_STA capability to indicate sta mode is supported (was previously assumed) and mark drivers as capable o add ieee80211_opcap array to map an opmode to the equivalent capability bit o move IEEE80211_C_OPMODE definition to where capabilities are defined so it's clear it should be kept in sync (on future additions) o check device capabilities in clone create before trying to create a vap; this makes driver checks unneeded o make error codes return on failed clone request unique o temporarily add console printfs on clone request failures to aid in debugging; these will move under DIAGNOSTIC or similar before release
Diffstat (limited to 'sys/dev/ipw')
-rw-r--r--sys/dev/ipw/if_ipw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ipw/if_ipw.c b/sys/dev/ipw/if_ipw.c
index 45a418e..f7ef813 100644
--- a/sys/dev/ipw/if_ipw.c
+++ b/sys/dev/ipw/if_ipw.c
@@ -305,7 +305,9 @@ ipw_attach(device_t dev)
ic->ic_phytype = IEEE80211_T_DS;
/* set device capabilities */
- ic->ic_caps = IEEE80211_C_IBSS /* IBSS mode supported */
+ ic->ic_caps =
+ IEEE80211_C_STA /* station mode supported */
+ | IEEE80211_C_IBSS /* IBSS mode supported */
| IEEE80211_C_MONITOR /* monitor mode supported */
| IEEE80211_C_PMGT /* power save supported */
| IEEE80211_C_SHPREAMBLE /* short preamble supported */
OpenPOWER on IntegriCloud