diff mbox series

[v2,3/3] wiphy: remove l_info's for control port/power save

Message ID 20230619152543.197532-3-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [v2,1/3] netdev: move GETLINK into its own function, track command ID | expand

Commit Message

James Prestwood June 19, 2023, 3:25 p.m. UTC
These should not have been put into a getter for wiphy and now
the driver quirks are printed out in wiphy_print_basic_info.
---
 src/wiphy.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/src/wiphy.c b/src/wiphy.c
index 39ebe276..77ed2acf 100644
--- a/src/wiphy.c
+++ b/src/wiphy.c
@@ -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;
 }