]> err.no Git - linux-2.6/commitdiff
libertas: make lbs_update_channel() function non-static
authorDavid Woodhouse <dwmw2@infradead.org>
Thu, 13 Dec 2007 03:50:21 +0000 (22:50 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:07:06 +0000 (15:07 -0800)
We'll want to use this for meshfrobbing

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/assoc.c
drivers/net/wireless/libertas/decl.h

index 21a569617421a5575d40273c1938719072c30e77..ff976ebcd014c87255dbe424f1e5893931bddddc 100644 (file)
@@ -163,7 +163,7 @@ done:
 }
 
 
-static int update_channel(struct lbs_private *priv)
+int lbs_update_channel(struct lbs_private *priv)
 {
        int ret;
 
@@ -184,7 +184,7 @@ void lbs_sync_channel(struct work_struct *work)
                sync_channel);
 
        lbs_deb_enter(LBS_DEB_ASSOC);
-       if (update_channel(priv) != 0)
+       if (lbs_update_channel(priv))
                lbs_pr_info("Channel synchronization failed.");
        lbs_deb_leave(LBS_DEB_ASSOC);
 }
@@ -196,7 +196,7 @@ static int assoc_helper_channel(struct lbs_private *priv,
 
        lbs_deb_enter(LBS_DEB_ASSOC);
 
-       ret = update_channel(priv);
+       ret = lbs_update_channel(priv);
        if (ret < 0) {
                lbs_deb_assoc("ASSOC: channel: error getting channel.\n");
        }
@@ -220,7 +220,7 @@ static int assoc_helper_channel(struct lbs_private *priv,
        /* FIXME: shouldn't need to grab the channel _again_ after setting
         * it since the firmware is supposed to return the new channel, but
         * whatever... */
-       ret = update_channel(priv);
+       ret = lbs_update_channel(priv);
        if (ret < 0)
                lbs_deb_assoc("ASSOC: channel: error getting channel.\n");
 
index 9b0ef166185dda1d7cf6b745e8aeb51a7646ffec..45f081b687060ab20a7ba13643cd19138f116541 100644 (file)
@@ -77,4 +77,5 @@ int lbs_stop_card(struct lbs_private *priv);
 int lbs_reset_device(struct lbs_private *priv);
 void lbs_host_to_card_done(struct lbs_private *priv);
 
+int lbs_update_channel(struct lbs_private *priv);
 #endif