mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
qtnfmac: inform wireless core about supported extended capabilities
Driver retrieves information about supported extended capabilities from wireless card. However this information is not propagated further to Linux wireless core. Fix this by setting extended capabilities fields of wiphy structure. Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
committed by
Kalle Valo
parent
d5657b709e
commit
ab1c64a1d3
@@ -1129,6 +1129,15 @@ int qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac)
|
||||
wiphy->regulatory_flags |= REGULATORY_WIPHY_SELF_MANAGED;
|
||||
}
|
||||
|
||||
if (mac->macinfo.extended_capabilities_len) {
|
||||
wiphy->extended_capabilities =
|
||||
mac->macinfo.extended_capabilities;
|
||||
wiphy->extended_capabilities_mask =
|
||||
mac->macinfo.extended_capabilities_mask;
|
||||
wiphy->extended_capabilities_len =
|
||||
mac->macinfo.extended_capabilities_len;
|
||||
}
|
||||
|
||||
strlcpy(wiphy->fw_version, hw_info->fw_version,
|
||||
sizeof(wiphy->fw_version));
|
||||
wiphy->hw_version = hw_info->hw_version;
|
||||
|
||||
Reference in New Issue
Block a user