mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +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:
parent
29edb1626d
commit
2e2f6f991d
10
src/wiphy.c
10
src/wiphy.c
@ -708,11 +708,8 @@ bool wiphy_control_port_enabled(struct wiphy *wiphy)
|
|||||||
const struct l_settings *settings = iwd_get_config();
|
const struct l_settings *settings = iwd_get_config();
|
||||||
bool enabled;
|
bool enabled;
|
||||||
|
|
||||||
if (wiphy->driver_flags & FORCE_PAE) {
|
if (wiphy->driver_flags & FORCE_PAE)
|
||||||
l_info("Not using Control Port due to driver quirks: %s",
|
|
||||||
wiphy_get_driver(wiphy));
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
if (!wiphy_has_ext_feature(wiphy,
|
if (!wiphy_has_ext_feature(wiphy,
|
||||||
NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211))
|
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)
|
bool wiphy_power_save_disabled(struct wiphy *wiphy)
|
||||||
{
|
{
|
||||||
if (wiphy->driver_flags & POWER_SAVE_DISABLE) {
|
if (wiphy->driver_flags & POWER_SAVE_DISABLE)
|
||||||
l_info("Disabling power save due to driver quirks: %s",
|
|
||||||
wiphy_get_driver(wiphy));
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user