Commit 500f747c authored by Yogesh Ashok Powar's avatar Yogesh Ashok Powar Committed by John W. Linville

mwifiex: fix checkpatch --strict warnings/errors Part 8

For files sta_event.c and sta_ioctl.c
Signed-off-by: default avatarYogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 9c05fd72
...@@ -93,11 +93,11 @@ mwifiex_reset_connect_state(struct mwifiex_private *priv) ...@@ -93,11 +93,11 @@ mwifiex_reset_connect_state(struct mwifiex_private *priv)
*/ */
dev_dbg(adapter->dev, "info: previous SSID=%s, SSID len=%u\n", dev_dbg(adapter->dev, "info: previous SSID=%s, SSID len=%u\n",
priv->prev_ssid.ssid, priv->prev_ssid.ssid_len); priv->prev_ssid.ssid, priv->prev_ssid.ssid_len);
dev_dbg(adapter->dev, "info: current SSID=%s, SSID len=%u\n", dev_dbg(adapter->dev, "info: current SSID=%s, SSID len=%u\n",
priv->curr_bss_params.bss_descriptor.ssid.ssid, priv->curr_bss_params.bss_descriptor.ssid.ssid,
priv->curr_bss_params.bss_descriptor.ssid.ssid_len); priv->curr_bss_params.bss_descriptor.ssid.ssid_len);
memcpy(&priv->prev_ssid, memcpy(&priv->prev_ssid,
&priv->curr_bss_params.bss_descriptor.ssid, &priv->curr_bss_params.bss_descriptor.ssid,
...@@ -115,9 +115,9 @@ mwifiex_reset_connect_state(struct mwifiex_private *priv) ...@@ -115,9 +115,9 @@ mwifiex_reset_connect_state(struct mwifiex_private *priv)
if (adapter->num_cmd_timeout && adapter->curr_cmd) if (adapter->num_cmd_timeout && adapter->curr_cmd)
return; return;
priv->media_connected = false; priv->media_connected = false;
dev_dbg(adapter->dev, "info: successfully disconnected from" dev_dbg(adapter->dev,
" %pM: reason code %d\n", priv->cfg_bssid, "info: successfully disconnected from %pM: reason code %d\n",
WLAN_REASON_DEAUTH_LEAVING); priv->cfg_bssid, WLAN_REASON_DEAUTH_LEAVING);
if (priv->bss_mode == NL80211_IFTYPE_STATION) { if (priv->bss_mode == NL80211_IFTYPE_STATION) {
cfg80211_disconnected(priv->netdev, WLAN_REASON_DEAUTH_LEAVING, cfg80211_disconnected(priv->netdev, WLAN_REASON_DEAUTH_LEAVING,
NULL, 0, GFP_KERNEL); NULL, 0, GFP_KERNEL);
...@@ -192,8 +192,8 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv) ...@@ -192,8 +192,8 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv)
switch (eventcause) { switch (eventcause) {
case EVENT_DUMMY_HOST_WAKEUP_SIGNAL: case EVENT_DUMMY_HOST_WAKEUP_SIGNAL:
dev_err(adapter->dev, "invalid EVENT: DUMMY_HOST_WAKEUP_SIGNAL," dev_err(adapter->dev,
" ignoring it\n"); "invalid EVENT: DUMMY_HOST_WAKEUP_SIGNAL, ignore it\n");
break; break;
case EVENT_LINK_SENSED: case EVENT_LINK_SENSED:
dev_dbg(adapter->dev, "event: LINK_SENSED\n"); dev_dbg(adapter->dev, "event: LINK_SENSED\n");
...@@ -235,8 +235,7 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv) ...@@ -235,8 +235,7 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv)
case EVENT_PS_AWAKE: case EVENT_PS_AWAKE:
dev_dbg(adapter->dev, "info: EVENT: AWAKE\n"); dev_dbg(adapter->dev, "info: EVENT: AWAKE\n");
if (!adapter->pps_uapsd_mode && if (!adapter->pps_uapsd_mode &&
priv->media_connected && priv->media_connected && adapter->sleep_period.period) {
adapter->sleep_period.period) {
adapter->pps_uapsd_mode = true; adapter->pps_uapsd_mode = true;
dev_dbg(adapter->dev, dev_dbg(adapter->dev,
"event: PPS/UAPSD mode activated\n"); "event: PPS/UAPSD mode activated\n");
...@@ -244,15 +243,19 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv) ...@@ -244,15 +243,19 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv)
adapter->tx_lock_flag = false; adapter->tx_lock_flag = false;
if (adapter->pps_uapsd_mode && adapter->gen_null_pkt) { if (adapter->pps_uapsd_mode && adapter->gen_null_pkt) {
if (mwifiex_check_last_packet_indication(priv)) { if (mwifiex_check_last_packet_indication(priv)) {
if (!adapter->data_sent) { if (adapter->data_sent) {
if (!mwifiex_send_null_packet(priv, adapter->ps_state = PS_STATE_AWAKE;
MWIFIEX_TxPD_POWER_MGMT_NULL_PACKET adapter->pm_wakeup_card_req = false;
| adapter->pm_wakeup_fw_try = false;
MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET)) break;
}
if (!mwifiex_send_null_packet
(priv,
MWIFIEX_TxPD_POWER_MGMT_NULL_PACKET |
MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET))
adapter->ps_state = adapter->ps_state =
PS_STATE_SLEEP; PS_STATE_SLEEP;
return 0; return 0;
}
} }
} }
adapter->ps_state = PS_STATE_AWAKE; adapter->ps_state = PS_STATE_AWAKE;
...@@ -371,12 +374,12 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv) ...@@ -371,12 +374,12 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv)
break; break;
case EVENT_AMSDU_AGGR_CTRL: case EVENT_AMSDU_AGGR_CTRL:
dev_dbg(adapter->dev, "event: AMSDU_AGGR_CTRL %d\n", dev_dbg(adapter->dev, "event: AMSDU_AGGR_CTRL %d\n",
*(u16 *) adapter->event_body); *(u16 *) adapter->event_body);
adapter->tx_buf_size = adapter->tx_buf_size =
min(adapter->curr_tx_buf_size, min(adapter->curr_tx_buf_size,
le16_to_cpu(*(__le16 *) adapter->event_body)); le16_to_cpu(*(__le16 *) adapter->event_body));
dev_dbg(adapter->dev, "event: tx_buf_size %d\n", dev_dbg(adapter->dev, "event: tx_buf_size %d\n",
adapter->tx_buf_size); adapter->tx_buf_size);
break; break;
case EVENT_WEP_ICV_ERR: case EVENT_WEP_ICV_ERR:
...@@ -392,7 +395,7 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv) ...@@ -392,7 +395,7 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv)
break; break;
default: default:
dev_dbg(adapter->dev, "event: unknown event id: %#x\n", dev_dbg(adapter->dev, "event: unknown event id: %#x\n",
eventcause); eventcause);
break; break;
} }
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment