Sergey Matyukevich <sergey.matyukevich.os@xxxxxxxxxxxxx> writes: > From: Sergei Maksimenko <smaksimenko@xxxxxxxxxxxxx> > > Implement set_power_mgmt() callback that forwards power saving > settings to the device firmware. > > Signed-off-by: Sergei Maksimenko <smaksimenko@xxxxxxxxxxxxx> [...] > @@ -922,6 +939,9 @@ struct wiphy *qtnf_wiphy_allocate(struct qtnf_bus *bus) > if (bus->hw_info.hw_capab & QLINK_HW_CAPAB_DFS_OFFLOAD) > qtn_cfg80211_ops.start_radar_detection = NULL; > > + if (!(bus->hw_info.hw_capab & QLINK_HW_CAPAB_PWR_MGMT)) > + qtn_cfg80211_ops.set_power_mgmt = NULL; Igor already commented about this but AFAICS this breaks if there are more than one device on the host. Upstream drivers should not have any limit for the number of devices they support. -- Kalle Valo