mac80211: call set_wmm_default only for valid vifs
authorEliad Peller <eliad@wizery.com>
Sun, 16 Oct 2011 08:57:31 +0000 (10:57 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Nov 2011 20:53:57 +0000 (15:53 -0500)
commit59034591029e9f3b691fe02ff60938556dba5683
tree287baf9c4e5d0a81948c0f321937ef17a6d96d05
parent3a8aea098c8ebe3437d877542d138085be33346c
mac80211: call set_wmm_default only for valid vifs

mac80211 calls ieee80211_set_wmm_default (which in turn
calls drv_conf_tx()) for every new interface, including
"internal" ones (e.g. monitor interface, which the low-level
driver doesn't know about).

Limit this call only to valid interfaces.

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/iface.c