Commit 9f462577 authored by David Woodhouse's avatar David Woodhouse Committed by David S. Miller

libertas: make lbs_update_channel() function non-static

We'll want to use this for meshfrobbing
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 506e9025
...@@ -163,7 +163,7 @@ static int assoc_helper_mode(struct lbs_private *priv, ...@@ -163,7 +163,7 @@ static int assoc_helper_mode(struct lbs_private *priv,
} }
static int update_channel(struct lbs_private *priv) int lbs_update_channel(struct lbs_private *priv)
{ {
int ret; int ret;
...@@ -184,7 +184,7 @@ void lbs_sync_channel(struct work_struct *work) ...@@ -184,7 +184,7 @@ void lbs_sync_channel(struct work_struct *work)
sync_channel); sync_channel);
lbs_deb_enter(LBS_DEB_ASSOC); lbs_deb_enter(LBS_DEB_ASSOC);
if (update_channel(priv) != 0) if (lbs_update_channel(priv))
lbs_pr_info("Channel synchronization failed."); lbs_pr_info("Channel synchronization failed.");
lbs_deb_leave(LBS_DEB_ASSOC); lbs_deb_leave(LBS_DEB_ASSOC);
} }
...@@ -196,7 +196,7 @@ static int assoc_helper_channel(struct lbs_private *priv, ...@@ -196,7 +196,7 @@ static int assoc_helper_channel(struct lbs_private *priv,
lbs_deb_enter(LBS_DEB_ASSOC); lbs_deb_enter(LBS_DEB_ASSOC);
ret = update_channel(priv); ret = lbs_update_channel(priv);
if (ret < 0) { if (ret < 0) {
lbs_deb_assoc("ASSOC: channel: error getting channel.\n"); lbs_deb_assoc("ASSOC: channel: error getting channel.\n");
} }
...@@ -220,7 +220,7 @@ static int assoc_helper_channel(struct lbs_private *priv, ...@@ -220,7 +220,7 @@ static int assoc_helper_channel(struct lbs_private *priv,
/* FIXME: shouldn't need to grab the channel _again_ after setting /* FIXME: shouldn't need to grab the channel _again_ after setting
* it since the firmware is supposed to return the new channel, but * it since the firmware is supposed to return the new channel, but
* whatever... */ * whatever... */
ret = update_channel(priv); ret = lbs_update_channel(priv);
if (ret < 0) if (ret < 0)
lbs_deb_assoc("ASSOC: channel: error getting channel.\n"); lbs_deb_assoc("ASSOC: channel: error getting channel.\n");
......
...@@ -77,4 +77,5 @@ int lbs_stop_card(struct lbs_private *priv); ...@@ -77,4 +77,5 @@ int lbs_stop_card(struct lbs_private *priv);
int lbs_reset_device(struct lbs_private *priv); int lbs_reset_device(struct lbs_private *priv);
void lbs_host_to_card_done(struct lbs_private *priv); void lbs_host_to_card_done(struct lbs_private *priv);
int lbs_update_channel(struct lbs_private *priv);
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment