3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

wiphy: remove l_info's for control port/power save

These should not have been put into a getter for wiphy and now
the driver quirks are printed out in wiphy_print_basic_info.
This commit is contained in:
James Prestwood 2023-06-19 11:09:22 -07:00 committed by Denis Kenzior
parent 29edb1626d
commit 2e2f6f991d

View File

@ -708,11 +708,8 @@ bool wiphy_control_port_enabled(struct wiphy *wiphy)
const struct l_settings *settings = iwd_get_config();
bool enabled;
if (wiphy->driver_flags & FORCE_PAE) {
l_info("Not using Control Port due to driver quirks: %s",
wiphy_get_driver(wiphy));
if (wiphy->driver_flags & FORCE_PAE)
return false;
}
if (!wiphy_has_ext_feature(wiphy,
NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211))
@ -727,11 +724,8 @@ bool wiphy_control_port_enabled(struct wiphy *wiphy)
bool wiphy_power_save_disabled(struct wiphy *wiphy)
{
if (wiphy->driver_flags & POWER_SAVE_DISABLE) {
l_info("Disabling power save due to driver quirks: %s",
wiphy_get_driver(wiphy));
if (wiphy->driver_flags & POWER_SAVE_DISABLE)
return true;
}
return false;
}