libertas: move mesh SSID initialization into mesh.c
authorHolger Schurig <holgerschurig@googlemail.com>
Wed, 2 Dec 2009 14:26:00 +0000 (15:26 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 22 Dec 2009 18:38:29 +0000 (13:38 -0500)
Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/main.c
drivers/net/wireless/libertas/mesh.c

index ad3434011897b3ad56172243a2cc7cf6d761bb30..127b7f60c320bbad99fd875dec6f569dde098e57 100644 (file)
@@ -986,10 +986,6 @@ struct lbs_private *lbs_add_card(void *card, struct device *dmdev)
        INIT_DELAYED_WORK(&priv->scan_work, lbs_scan_worker);
        INIT_WORK(&priv->mcast_work, lbs_set_mcast_worker);
 
-       priv->mesh_open = 0;
-       sprintf(priv->mesh_ssid, "mesh");
-       priv->mesh_ssid_len = 4;
-
        priv->wol_criteria = 0xffffffff;
        priv->wol_gpio = 0xff;
 
index 1d94f7d4efc8ec906bcb1e9d76cc0c8e440b6800..4f67c8b62edc2bc13ad425195012b3412d126ded 100644 (file)
@@ -237,6 +237,9 @@ int lbs_init_mesh(struct lbs_private *priv)
 
 
        if (priv->mesh_tlv) {
+               sprintf(priv->mesh_ssid, "mesh");
+               priv->mesh_ssid_len = 4;
+
                lbs_add_mesh(priv);
 
                if (device_create_file(&dev->dev, &dev_attr_lbs_mesh))