diff options
author | Shivani Bhardwaj <shivanib134@gmail.com> | 2015-10-26 20:21:05 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-27 14:27:27 +0900 |
commit | a66907d10076a48d70adde1a78e46a8aa0c0857c (patch) | |
tree | edc7f571b523dd137454f0b65c1cff2490a6f3b1 /drivers/staging/wilc1000/coreconfigurator.c | |
parent | d4622f68db8095dd54179e3134e97812727f6b89 (diff) | |
download | op-kernel-dev-a66907d10076a48d70adde1a78e46a8aa0c0857c.zip op-kernel-dev-a66907d10076a48d70adde1a78e46a8aa0c0857c.tar.gz |
Staging: wilc1000: coreconfigurator: Remove irrelevant wrapper function
Remove the function get_current_channel() and replace its calls by
get_current_channel_802_11n() as the former function's definition
involves only returning the value of latter function.
Semantic patch used to find out the issue:
@@
identifier f,g;
@@
*f(...) {
return g(...); }
Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/coreconfigurator.c')
-rw-r--r-- | drivers/staging/wilc1000/coreconfigurator.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/coreconfigurator.c index 6dfe26d..1403a33 100644 --- a/drivers/staging/wilc1000/coreconfigurator.c +++ b/drivers/staging/wilc1000/coreconfigurator.c @@ -331,13 +331,6 @@ u8 get_current_channel_802_11n(u8 *pu8msa, u16 u16RxLen) return 0; /* no MIB here */ } -u8 get_current_channel(u8 *pu8msa, u16 u16RxLen) -{ - /* Extract current channel information from */ - /* the beacon/probe response frame */ - return get_current_channel_802_11n(pu8msa, u16RxLen); -} - /** * @brief parses the received 'N' message * @details @@ -425,8 +418,12 @@ s32 parse_network_info(u8 *pu8MsgBuffer, tstrNetworkInfo **ppstrNetworkInfo) /* Get BSSID */ get_BSSID(pu8msa, pstrNetworkInfo->au8bssid); - /* Get the current channel */ - pstrNetworkInfo->u8channel = get_current_channel(pu8msa, (u16RxLen + FCS_LEN)); + /* + * Extract current channel information from + * the beacon/probe response frame + */ + pstrNetworkInfo->u8channel = get_current_channel_802_11n(pu8msa, + (u16RxLen + FCS_LEN)); /* Get beacon period */ u8index = (MAC_HDR_LEN + TIME_STAMP_LEN); |