On Mon, Sep 09, 2019 at 10:26:37AM +0100, Raf Czlonka wrote: > Your email prompted me today to have a look at what is happening > while the laptop loses connectivity - it's been disconnected for 3 > days after about 30 minutes of being connected (enough time to run > 'pkg_add -u'). After putting the interface into debug modes: > > # ifconfig iwn0 debug > > /var/log/messages shows: > > iwn0: AUTH -> SCAN > iwn0: end active scan > iwn0: - [...] > iwn0: - 12:34:56:12:34:56 11 +212 54M ess privacy rsn "MYNWID2"! > iwn0: + 12:34:56:12:34:57 44 +203 54M ess privacy rsn "MYNWID5" > iwn0: - [...] > iwn0: SCAN -> AUTH > iwn0: sending auth to 12:34:56:12:34:57 on channel 44 mode 11a
This small part of the log is not useful by itself, unfortunately. You need to show debug output where iwn left RUN state in the first place. > What seems strange there is the mode - after a very brief look, it > seems like the laptop is "stuck" trying to use 11a mode. > > After forcing the 11n mode: > > # ifconfig iwn0 mode 11n > > it connects instantaneously: This command resets everything and the condition which triggered the problem is now gone. It connected fine to your 2 GHz AP. You have only shown failing connection attempts to your 5 GHz AP. Did your 5 GHz AP ever actually work with iwn?