]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: set running state earlier
authorJohannes Berg <johannes.berg@intel.com>
Wed, 15 Sep 2010 13:13:13 +0000 (15:13 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 16 Sep 2010 19:46:01 +0000 (15:46 -0400)
commitccbe8f236dc354bef06e626e9f5dd965dc054142
treee90c4bcb6320e68cceb6a1695895cceae2e14cb3
parent03c2bfe6cea6002195a75d0b463fb8c80e76ceb7
mac80211: set running state earlier

When an interface is brought up, the recent changes
to allow changing type-while-up only set the running
bit after everything was done. This broke a number
of things, including idle calculation for monitor
interfaces, and it also broke WDS station insertion
(although nobody noticed yet).

Thus, change the code to set the running bit earlier,
but keep it after the driver's add_interface was
called because otherwise drivers may iterate over
interfaces they haven't fully set up yet.

Reported-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/iface.c