Date: Tue, 07 Jun 2016 15:54:36 +0300 From: "Andriy Voskoboinyk" <avos@freebsd.org> To: "Yoshihiro Ota" <ota@j.email.ne.jp>, "Adrian Chadd" <adrian@freebsd.org> Cc: freebsd-current <FreeBSD-current@freebsd.org> Subject: Re: wlan/ifconfig stopped working sometime between 5/25 and 6/3 Message-ID: <op.yiot5aqg4dikkl@localhost> In-Reply-To: <CAJ-Vmok4T6=jE8rVB9wmv44UPN-E2pH=r91yEHfMOwpDNeiR_g@mail.gmail.com> References: <20160606231544.2aaf45c7340fe0c543e9b10c@j.email.ne.jp> <CAJ-Vmok4T6=jE8rVB9wmv44UPN-E2pH=r91yEHfMOwpDNeiR_g@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Tue, 07 Jun 2016 07:42:48 +0300 було написано Adrian Chadd <adrian@freebsd.org>: Hi, the attached patch should fix this issue (no idea if it can be fixed in a better way...) > Hi, > > this is a recent change to the regulatory handling. I've emailed > Andriy who wrote the code. :) > > Andriy, any ideas? > > > > -adrian > > > On 6 June 2016 at 20:15, Yoshihiro Ota <ota@j.email.ne.jp> wrote: >> Hi, >> >> I started getting the following error when I tried to bring up wireless >> connection since June 3rd. I had last updated kernel and world on May >> 25th before. >> >> "unable to get regulatory domain info: Device not configured" >> >> ifconfig starts working again after I reverted the user land backt May >> 25th one; kernel don't seem to be a fact here. >> >> I use "ifconfig wlan create wlandev ath0 ssid <id> wepmode on wepkey >> <key> weptxkey 1 up". >> Is something changed in ifconfig? >> Do I need to use different arguments? >> >> Thanks, >> Hiro >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to >> "freebsd-current-unsubscribe@freebsd.org" [-- Attachment #2 --] Index: sbin/ifconfig/ifieee80211.c =================================================================== --- sbin/ifconfig/ifieee80211.c (revision 301413) +++ sbin/ifconfig/ifieee80211.c (working copy) @@ -5190,6 +5190,7 @@ wlan_create(int s, struct ifreq *ifr) { static const uint8_t zerobssid[IEEE80211_ADDR_LEN]; + char orig_name[IFNAMSIZ]; if (params.icp_parent[0] == '\0') errx(1, "must specify a parent device (wlandev) when creating " @@ -5201,7 +5202,13 @@ if (ioctl(s, SIOCIFCREATE2, ifr) < 0) err(1, "SIOCIFCREATE2"); + /* XXX preserve original name for ifclonecreate(). */ + strlcpy(orig_name, name, sizeof(orig_name)); + strlcpy(name, ifr->ifr_name, sizeof(name)); + setdefregdomain(s); + + strlcpy(name, orig_name, sizeof(name)); } statichelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.yiot5aqg4dikkl>
