From 9281b20b4c209bbdb4730741a06b46c29a67756d Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 14 Dec 2005 01:14:22 +0000 Subject: [PATCH] allow setting the bssid in any mode Obtained from: netbsd --- sys/net80211/ieee80211_ioctl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c index 94198719ca75..4c1aac2cd234 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);