Page MenuHomeFreeBSD

rtwn: do not start vap when initialization fails
ClosedPublic

Authored by avos on Jan 24 2016, 7:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 6:47 AM
Unknown Object (File)
Thu, Nov 14, 3:21 PM
Unknown Object (File)
Wed, Nov 6, 10:07 PM
Unknown Object (File)
Wed, Nov 6, 6:21 PM
Unknown Object (File)
Oct 8 2024, 6:54 AM
Unknown Object (File)
Oct 8 2024, 6:54 AM
Unknown Object (File)
Oct 8 2024, 6:54 AM
Unknown Object (File)
Oct 2 2024, 5:03 PM
Subscribers

Details

Summary
  • Start vap(s) (via ieee80211_start_all()) only when initialization succeeds; stop the first vap otherwise (via ieee80211_stop());
  • Do not try to stop a device multiple times (move (sc->sc_flags & RTWN_RUNNING) check to urtwn_stop_locked()).
Test Plan

untested, compilable

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

avos retitled this revision from to rtwn: do not start vap when initialization fails.
avos updated this object.
avos edited the test plan for this revision. (Show Details)
avos added reviewers: adrian, kevlo.
avos set the repository for this revision to rS FreeBSD src repository - subversion.

please find someone to test these and then I'll OK them

kevlo edited edge metadata.

Works for me. Tested on amd64 with RTL8188CE.

This revision is now accepted and ready to land.Jan 26 2016, 3:14 AM
adrian edited edge metadata.

two testers, positive reviews, good!

This revision was automatically updated to reflect the committed changes.
head/sys/dev/rtwn/if_rtwn.c
3371

An erroneous RTWN_UNLOCK(sc) was removed from here (left from previous version)