libertas: Update 11d info only when interface is active
reg_notifier can be called before the interface is up. Handle this correctly by storing the requested country code, then apply the relevant configuration when the interface is brought up. Signed-off-by: Daniel Drake <dsd@laptop.org> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
08a4a1ab07
commit
20d2ebe512
@@ -152,6 +152,12 @@ int lbs_start_iface(struct lbs_private *priv)
|
||||
goto err;
|
||||
}
|
||||
|
||||
ret = lbs_set_11d_domain_info(priv);
|
||||
if (ret) {
|
||||
lbs_deb_net("set 11d domain info failed\n");
|
||||
goto err;
|
||||
}
|
||||
|
||||
lbs_update_channel(priv);
|
||||
|
||||
priv->iface_running = true;
|
||||
|
Reference in New Issue
Block a user