提交 76c3c698 编写于 作者: J Johannes Berg 提交者: Reinette Chatre

iwlwifi: remove pointless sta_id invalid check

lq->sta_id cannot be invalid here since this
function will only be called after the station
has been added properly.
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
Signed-off-by: NReinette Chatre <reinette.chatre@intel.com>
上级 a90178fa
...@@ -1187,13 +1187,9 @@ int iwl_send_lq_cmd(struct iwl_priv *priv, ...@@ -1187,13 +1187,9 @@ int iwl_send_lq_cmd(struct iwl_priv *priv,
.data = lq, .data = lq,
}; };
if ((lq->sta_id == 0xFF) && if (WARN_ON(lq->sta_id == IWL_INVALID_STATION))
(priv->iw_mode == NL80211_IFTYPE_ADHOC))
return -EINVAL; return -EINVAL;
if (lq->sta_id == 0xFF)
lq->sta_id = IWL_AP_ID;
iwl_dump_lq_cmd(priv, lq); iwl_dump_lq_cmd(priv, lq);
BUG_ON(init && (cmd.flags & CMD_ASYNC)); BUG_ON(init && (cmd.flags & CMD_ASYNC));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册