diff options
author | sam <sam@FreeBSD.org> | 2005-12-14 01:14:22 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-12-14 01:14:22 +0000 |
commit | 9281b20b4c209bbdb4730741a06b46c29a67756d (patch) | |
tree | 23833996df1bf588a5b4a29256ed64ee9cc8c247 /sys/net80211 | |
parent | 5d3c44687b2e85f65228a2386d84f916ff779427 (diff) | |
download | FreeBSD-src-9281b20b4c209bbdb4730741a06b46c29a67756d.zip FreeBSD-src-9281b20b4c209bbdb4730741a06b46c29a67756d.tar.gz |
allow setting the bssid in any mode
Obtained from: netbsd
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_ioctl.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c index 9419871..4c1aac2 100644 --- a/sys/net80211/ieee80211_ioctl.c +++ b/sys/net80211/ieee80211_ioctl.c @@ -2298,9 +2298,6 @@ ieee80211_ioctl_set80211(struct ieee80211com *ic, u_long cmd, struct ieee80211re error = (ic->ic_flags & IEEE80211_F_WPA) ? ENETRESET : 0; break; case IEEE80211_IOC_BSSID: - /* NB: should only be set when in STA mode */ - if (ic->ic_opmode != IEEE80211_M_STA) - return EINVAL; if (ireq->i_len != sizeof(tmpbssid)) return EINVAL; error = copyin(ireq->i_data, tmpbssid, ireq->i_len); |