|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
iwm0: no link ........... sleeping
I'm attempting to connect to wifi with the following commands in OpenBSD 6.0 but receive "wm0: no link ........... sleeping."
Code:
ifconfig iwm0 nwid "NetworkName" wpakey "password" dhclient iwm0 Code:
iwm0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 lladdr a0:88:69:b5:58:97 index 1 priority 4 llprio 3 groups: wlan media: IEEE802.11 autoselect (autoselect mode 11b) status: no network ieee80211: nwid "" Last edited by ocicat; 21st October 2016 at 02:43 PM. Reason: Please use [code] & [/code] tags when posting command output. |
|
|||
I don't believe the problem is name or password. What might be wrong with dhcp?
Am I correct that successfully running "ifconfig iwm0 scan" means everything necessary for my wifi chip is done? I ask this as in Linux I need to compile support into the kernel. I also assume "ifconfig iwm0 up" is necessary before executing: ifconfig iwm0 nwid "NetworkName" wpakey "password" |
|
||||
In OpenBSD, NIC drivers are all included in the kernel. There is nothing to add. For WiFi NICs, WPA/WPA2 encryption with pre-shared keys is "built in" if the hardware supports it, which the Intel 7000/8000 series does.
For normal operation, the "up" command is not needed, as dhclient(8) will bring the interface up in order to communicate over it. I previously recommended testing with an open access point. If you are unable to do so, here is a test you can try with a closed access point: Step 1: configure the ESSID ("nwid") and WPA/WPA2 pre-shared key ("wpakey"). Example with an ASCII passphrase:At this point, there has been no communication so the ifconfig(8) status output will show "no network". Step 2: Bring up the network interface, without sending any packets. If the correct ESSID and passphrase were used, within some seconds the NIC should be able to train to the Access Point, and the ifconfig(8) output will show both the correct channel and the network as "active". If the ESSID cannot be connected, the NIC will neither train to the channel nor will it show the network active. Here is an example of ifconfig(8) output with my rtwn(4) NIC, after configuring the ESSID and passphrase, but not running dhclient(8): Code:
$ ifconfig wlan rtwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr ec:55:f9:c6:f9:40 index 2 priority 4 llprio 3 groups: wlan egress media: IEEE802.11 autoselect mode 11g (OFDM54 mode 11g) status: active ieee80211: nwid "nondescript black Escalade" chan 8 bssid d8:5d:4c:bd:fb:08 -32dBm wpakey <not displayed> wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip Last edited by jggimi; 23rd October 2016 at 09:52 PM. Reason: typos - "nwakey" inadvertenty used instead of "wpakey" -- Thanks, IdOp |
|
|||
Ultimately, most users like their preferred interface to come up automatically at boot.
From $ man iwm Quote:
|
|
||||
Just a guess, as this happened to me, is your wireless network hidden? If so, can you unhide it and see if the card then works?
(I found with an iwm0 card, in a yoga2, that it wouldn't work on hidden networks--and possibly an iwN as well, but it's so long since I changed it I have forgotten if it was iwn or iwm.) Last edited by scottro; 12th December 2017 at 11:56 PM. |
|
||||
And, there are WiFi features of the hardware which are not available with OpenBSD's driver. The iwm(4) man page states:
Code:
CAVEATS 802.11n operation is currently limited to data rates MCS 0 to MCS 7. The iwm driver does not support any of the 802.11ac capabilities offered by the adapters. Additional work is required in ieee80211(9) before those features can be supported. |
|
|||
Quote:
But, is whoever's responsible for the iwm0 driver aware of this? If not, as I'm new to OpenBSD, how do I make them aware? I assume other chips can recognize hidden networks with OpenBSD. |
|
||||
See http://www.openbsd.org/report.html for guidance on bug reporting. There are a number of developers involved with WiFi support and WiFi NIC drivers, and this apparently affects at least two of the drivers.
|
|
|||
Quote:
Be aware that this site has no official ties to any of the *BSD projects. This is an independent site maintained by people who support the efforts of the various *BSD projects, but none of us have affiliations with the projects other than being users ourselves. As for OpenBSD in particular, there are project developers who read these forums on occasion & respond as they see fit, but this site is not maintained or supported by the OpenBSD project in any manner. Last edited by ocicat; 23rd October 2016 at 04:25 AM. Reason: clarity |
|
|||
Quote:
|
|
||||
No. 802.11ac is an extension of the WiFi standard. What you and scottro refer to as "hidden" is not related.
A "hidden" WiFi network is one that does not broadcast its Service Set ID ("wireless network name"), so it is not shown in lists of broadcast SSIDs. This is an example of "security by obscurity." However, the network itself is not actually hidden, as the Access Point still broadcasts a beacon, and the SSID is transmitted in plaintext in all association traffic between clients and the Access Point. https://blogs.technet.microsoft.com/...ireless-ssids/ "Security by obscurity" is never a best practice, and this particular form is a poor obscuration. Last edited by jggimi; 23rd October 2016 at 10:00 PM. Reason: added beacon comment |
|
|||
I thought I'd post an update. I submitted a bug report and received a developer reply in about an hour (in my book that's dang impressive). I was given a patch to modify iwm and compiled a new kernel (with the help of jggimi).
The patch didn't fix the problem, but gave the developer information and he's looking at a solution. But the point is OpenBSD proved quite open to acknowledging the problem and a solution. Again, I'm impressed. I was aware hiding a network doesn't fully hide or protect a network. I use the term "Hidden" as that's the checkbox label in my cable modem setup. On my box, 'ifconfig wlan0 scan' displays my network name even if I have hidden checked. However, I believe some network managers don't. And my guess is Windows doesn't. So if I can choose to not broadcast my network name to some systems I'll do so 10 times out of 10. I just prefer it. |
|
||||
Access Points broadcast a type of signal called a Beacon frame. The Beacon frame includes the SSID, which is a variable length field. When you "hide" the SSID, it is just not included in the Beacon frame.
But the Beacon is still broadcast. |
|
|||
Indeed, I should have said displayed.
|
|
||||
I haven't inspected these frames in detail to determine they set the field to a byte length of zero or not, but I expect that's the case. The tcpdump(8) tool shows Beacon frames with "hidden" SSIDs as empty. An example from a neighbor's AP:
Code:
12:86:8c:76:03:f6 > ff:ff:ff:ff:ff:ff, bssid 12:86:8c:76:03:f6: 802.11: beacon, ssid (), rates, ds, tim, country, erp, xrates, htcaps, htop, 127:8 Last edited by jggimi; 29th October 2016 at 12:42 PM. Reason: typo, clarity |
|
||||
I'm unable to test this, and pretty much out of my depth here, but it seems worth throwing out an idea: What if you used ifconfig(8)'s bssid flag to specify the Access Point's MAC, instead of --- or perhaps along with(?) --- the nwid flag? Conceivably this could tell the driver what AP you want even when the network name isn't advertised in the beacon?
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
No link....... sleeping | illiterate | OpenBSD General | 6 | 26th February 2013 05:12 PM |
NetBSD on D-Link DIR-100/300/320 | Lexus45 | NetBSD General | 3 | 1st February 2011 12:24 PM |
dhclient -> urtw0: no link ....... sleeping | rma | OpenBSD Installation and Upgrading | 10 | 20th August 2010 03:25 AM |
zyd0: no link ........... sleeping | kallistoteles | OpenBSD Installation and Upgrading | 3 | 25th June 2010 02:38 PM |
kde .desktop file link doesn't act like a link when opening files | caesius | FreeBSD Ports and Packages | 3 | 14th October 2008 07:35 AM |