]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: rtl8723bs: use mac_pton() in rtw_macaddr_cfg()
authorMichael Straube <straube.linux@gmail.com>
Wed, 27 Jun 2018 17:36:49 +0000 (19:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 13:46:01 +0000 (22:46 +0900)
commita50d971c08ea72506d5f986fb7df9a5909c3997c
tree74edb995181a8760a8008fc53afbee73807512c8
parent9579ba6e5d4f2e823a16f0f99ba755cb345c3605
staging: rtl8723bs: use mac_pton() in rtw_macaddr_cfg()

Use the mac_pton() helper to convert the mac address string.

The functions key_char2num() and key_2char2num() are not used
anywhere else and can be removed.

This also has the benefit of validating the input since mac_pton()
returns false if the string is not valid.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_ieee80211.c
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c