]> git.baikalelectronics.ru Git - kernel.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)
commitf91d7f5331da572e25754b504fb1e11f916dd9d0
tree74edb995181a8760a8008fc53afbee73807512c8
parentef513e7d2990db43ccbbf1327476ac86268bf1a5
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