]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
net80211: Fix ifdetach w/o ifattach, small whitespace cleanup
authorKyle Evans <kevans@FreeBSD.org>
Tue, 10 Jul 2018 23:30:19 +0000 (23:30 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Tue, 10 Jul 2018 23:30:19 +0000 (23:30 +0000)
commita84a458c6faae0723a41c5627627de4018506ace
treeeb5b60db865fd6f3b003769a6e346862ab5fbff2
parenteec5cbde7173c29f2f179f4e68198a7043ffb1f1
net80211: Fix ifdetach w/o ifattach, small whitespace cleanup

As the comment says, ifdetach might be called during the course of driver
detach if initialization failed. This shouldn't be a total failure, though,
we just have nothing to do there.

This has been modified slightly from Augustin's original commit to move the
bail-out slightly earlier since the ic wouldn't have been added to the
ic list in the first place, and a comment has been added describing when
this might be an issue.

Submitted by: Augustin Cavalier <waddlesplash@gmail.com>
Obtained from: Haiku (e6f6c1b4633532a8ad37c803dc7c65601e5b24ba)
sys/net80211/ieee80211.c