From owner-svn-src-head@FreeBSD.ORG Sat Jun 29 06:36:43 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 196F8232; Sat, 29 Jun 2013 06:36:43 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 0C67B1AE6; Sat, 29 Jun 2013 06:36:43 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5T6agYk064889; Sat, 29 Jun 2013 06:36:42 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r5T6agwI064888; Sat, 29 Jun 2013 06:36:42 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <201306290636.r5T6agwI064888@svn.freebsd.org> From: Rui Paulo Date: Sat, 29 Jun 2013 06:36:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r252369 - head/sys/net80211 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jun 2013 06:36:43 -0000 Author: rpaulo Date: Sat Jun 29 06:36:42 2013 New Revision: 252369 URL: http://svnweb.freebsd.org/changeset/base/252369 Log: Don't panic the kernel if we run wpa_supplicant on a hostap VAP. Reviewed by: adrian Modified: head/sys/net80211/ieee80211_ioctl.c Modified: head/sys/net80211/ieee80211_ioctl.c ============================================================================== --- head/sys/net80211/ieee80211_ioctl.c Sat Jun 29 05:05:57 2013 (r252368) +++ head/sys/net80211/ieee80211_ioctl.c Sat Jun 29 06:36:42 2013 (r252369) @@ -1589,7 +1589,9 @@ ieee80211_ioctl_setmlme(struct ieee80211 mlme.im_op == IEEE80211_MLME_ASSOC) return setmlme_assoc_sta(vap, mlme.im_macaddr, vap->iv_des_ssid[0].len, vap->iv_des_ssid[0].ssid); - else if (mlme.im_op == IEEE80211_MLME_ASSOC) + else if ((vap->iv_opmode == IEEE80211_M_IBSS || + vap->iv_opmode == IEEE80211_M_AHDEMO) && + mlme.im_op == IEEE80211_MLME_ASSOC) return setmlme_assoc_adhoc(vap, mlme.im_macaddr, mlme.im_ssid_len, mlme.im_ssid); else