[wpa] use IFM_IEEE80211_ADHOC for now on FreeBSD for IBSS operation.

PR:		bin/203086
Submitted by:	avos
This commit is contained in:
Adrian Chadd 2015-11-26 17:28:40 +00:00
parent bd6b2f9bef
commit ce276fe26d
1 changed files with 7 additions and 0 deletions

View File

@ -1055,7 +1055,14 @@ wpa_driver_bsd_associate(void *priv, struct wpa_driver_associate_params *params)
mode = 0 /* STA */;
break;
case IEEE80211_MODE_IBSS:
/*
* Ref bin/203086 - FreeBSD's net80211 currently uses
* IFM_IEEE80211_ADHOC.
*/
#if 0
mode = IFM_IEEE80211_IBSS;
#endif
mode = IFM_IEEE80211_ADHOC;
break;
case IEEE80211_MODE_AP:
mode = IFM_IEEE80211_HOSTAP;