libertas: move lbs_update_channel out of assoc.c
PATCH 1/1 libertas: move lbs_update_channel out of assoc.c
... as it has nothing to do with pure association
Signed-off-by Holger Schurig <[email protected]>
drivers/net/wireless/libertas/assoc.c +0 -17
@@ -583,23 +583,6 @@ done:return ret; } - -int lbs_update_channel (struct lbs_private *priv) -{ -int ret; - -/* the channel in f/w could be out of sync; get the current channel */ -lbs_deb_enter (LBS_DEB_ASSOC ); - - ret =lbs_get_channel (priv); -if (ret >0 ) { - priv->curbssparams.channel = ret; - ret =0 ; - } -lbs_deb_leave_args (LBS_DEB_ASSOC ,"ret %d" , ret); -return ret; -} -static int assoc_helper_channel (struct lbs_private *priv,struct assoc_request * assoc_req) {
drivers/net/wireless/libertas/cmd.c +16 -0
@@ -826,6 +826,22 @@ out:return ret; } +int lbs_update_channel (struct lbs_private *priv) +{ +int ret; + +/* the channel in f/w could be out of sync; get the current channel */ +lbs_deb_enter (LBS_DEB_ASSOC ); + + ret =lbs_get_channel (priv); +if (ret >0 ) { + priv->curbssparams.channel = ret; + ret =0 ; + } +lbs_deb_leave_args (LBS_DEB_ASSOC ,"ret %d" , ret); +return ret; +} +/** * @brief Set the radio channel *
Quoted 3 lines · Holger Schurig
... as it has nothing to do with pure association
Signed-off-by Holger Schurig <[email protected]>
Acked-by Dan Williams <[email protected]>
Quoted 55 lines
Index:
wireless-testing/drivers/net/wireless/libertas/assoc.c
===================================================================drivers/net/wireless/libertas/assoc.c +0
-17@@ -583,23 +583,6 @@ done:return ret; } - -int lbs_update_channel (struct lbs_private *priv) -{ -int ret; - -/* the channel in f/w could be out of sync; get the current channel */ -lbs_deb_enter (LBS_DEB_ASSOC ); - - ret =lbs_get_channel (priv); -if (ret >0 ) { - priv->curbssparams.channel = ret; - ret =0 ; - } -lbs_deb_leave_args (LBS_DEB_ASSOC ,"ret %d" , ret); -return ret; -} -static int assoc_helper_channel (struct lbs_private *priv,struct assoc_request * assoc_req) {Index:
wireless-testing/drivers/net/wireless/libertas/cmd.c
===================================================================drivers/net/wireless/libertas/cmd.c +16
-0@@ -826,6 +826,22 @@ out:return ret; } +int lbs_update_channel (struct lbs_private *priv) +{ +int ret; + +/* the channel in f/w could be out of sync; get the current channel */ +lbs_deb_enter (LBS_DEB_ASSOC ); + + ret =lbs_get_channel (priv); +if (ret >0 ) { + priv->curbssparams.channel = ret; + ret =0 ; + } +lbs_deb_leave_args (LBS_DEB_ASSOC ,"ret %d" , ret); +return ret; +} +/** * @brief Set the radio channel *