|
@@ -4537,7 +4537,6 @@ static int
|
|
il_setup_interface(struct il_priv *il, struct il_rxon_context *ctx)
|
|
il_setup_interface(struct il_priv *il, struct il_rxon_context *ctx)
|
|
{
|
|
{
|
|
struct ieee80211_vif *vif = ctx->vif;
|
|
struct ieee80211_vif *vif = ctx->vif;
|
|
- int err;
|
|
|
|
|
|
|
|
lockdep_assert_held(&il->mutex);
|
|
lockdep_assert_held(&il->mutex);
|
|
|
|
|
|
@@ -4548,16 +4547,7 @@ il_setup_interface(struct il_priv *il, struct il_rxon_context *ctx)
|
|
*/
|
|
*/
|
|
il->iw_mode = vif->type;
|
|
il->iw_mode = vif->type;
|
|
|
|
|
|
- ctx->is_active = true;
|
|
|
|
-
|
|
|
|
- err = il_set_mode(il, ctx);
|
|
|
|
- if (err) {
|
|
|
|
- if (!ctx->always_active)
|
|
|
|
- ctx->is_active = false;
|
|
|
|
- return err;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return 0;
|
|
|
|
|
|
+ return il_set_mode(il, ctx);
|
|
}
|
|
}
|
|
|
|
|
|
int
|
|
int
|
|
@@ -4612,11 +4602,9 @@ il_teardown_interface(struct il_priv *il, struct ieee80211_vif *vif,
|
|
il_force_scan_end(il);
|
|
il_force_scan_end(il);
|
|
}
|
|
}
|
|
|
|
|
|
- if (!mode_change) {
|
|
|
|
|
|
+ if (!mode_change)
|
|
il_set_mode(il, ctx);
|
|
il_set_mode(il, ctx);
|
|
- if (!ctx->always_active)
|
|
|
|
- ctx->is_active = false;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
void
|
|
void
|
|
@@ -5227,9 +5215,6 @@ il_update_qos(struct il_priv *il, struct il_rxon_context *ctx)
|
|
if (test_bit(S_EXIT_PENDING, &il->status))
|
|
if (test_bit(S_EXIT_PENDING, &il->status))
|
|
return;
|
|
return;
|
|
|
|
|
|
- if (!ctx->is_active)
|
|
|
|
- return;
|
|
|
|
-
|
|
|
|
il->qos_data.def_qos_parm.qos_flags = 0;
|
|
il->qos_data.def_qos_parm.qos_flags = 0;
|
|
|
|
|
|
if (il->qos_data.qos_active)
|
|
if (il->qos_data.qos_active)
|