d80211: Fix errorcode in ieee80211_update_hw
Subsystems (2)
PATCH 1/1 d80211: Fix errorcode in ieee80211_update_hw
ieee80211_update_hw should return a proper error code instead of hardcoded -1.
Signed-off-by Michael Buesch <[email protected]>
net/d80211/ieee80211.c +1 -1
@@ -4644,7 +4644,7 @@ int ieee80211_update_hw(struct ieee80211if (!hw->modes || !hw->modes->channels || !hw->modes->rates || !hw->modes->num_channels || !hw->modes->num_rates) -return -1 ; +return -EINVAL ;ieee80211_precalc_modes (local); local->hw.conf.phymode = hw->modes[0 ].mode;
Signature · 1 line
Greetings Michael.