rtase: Refactor the rtase_check_mac_version_valid() function

[ Upstream commit a1f8609ff1 ]

Different hardware requires different configurations, but this distinction
was not made previously. Additionally, the error message was not clear
enough. Therefore, this patch will address the issues mentioned above.

Fixes: a36e9f5cfe ("rtase: Add support for a pci table in this module")
Signed-off-by: Justin Lai <justinlai0215@realtek.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Justin Lai 2024-11-20 15:56:22 +08:00 • committed by Greg Kroah-Hartman
commit b55b245e46
2 changed files with 22 additions and 13 deletions