diff options
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi/rx.c')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/rx.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/rx.c b/drivers/net/wireless/iwmc3200wifi/rx.c index a414768f40f..7d708f4395f 100644 --- a/drivers/net/wireless/iwmc3200wifi/rx.c +++ b/drivers/net/wireless/iwmc3200wifi/rx.c | |||
@@ -660,7 +660,7 @@ static int iwm_mlme_profile_invalidate(struct iwm_priv *iwm, u8 *buf, | |||
660 | clear_bit(IWM_STATUS_SME_CONNECTING, &iwm->status); | 660 | clear_bit(IWM_STATUS_SME_CONNECTING, &iwm->status); |
661 | clear_bit(IWM_STATUS_ASSOCIATED, &iwm->status); | 661 | clear_bit(IWM_STATUS_ASSOCIATED, &iwm->status); |
662 | 662 | ||
663 | iwm->umac_profile_active = 0; | 663 | iwm->umac_profile_active = false; |
664 | memset(iwm->bssid, 0, ETH_ALEN); | 664 | memset(iwm->bssid, 0, ETH_ALEN); |
665 | iwm->channel = 0; | 665 | iwm->channel = 0; |
666 | 666 | ||
@@ -735,7 +735,7 @@ static int iwm_mlme_update_sta_table(struct iwm_priv *iwm, u8 *buf, | |||
735 | umac_sta->mac_addr, | 735 | umac_sta->mac_addr, |
736 | umac_sta->flags & UMAC_STA_FLAG_QOS); | 736 | umac_sta->flags & UMAC_STA_FLAG_QOS); |
737 | 737 | ||
738 | sta->valid = 1; | 738 | sta->valid = true; |
739 | sta->qos = umac_sta->flags & UMAC_STA_FLAG_QOS; | 739 | sta->qos = umac_sta->flags & UMAC_STA_FLAG_QOS; |
740 | sta->color = GET_VAL8(umac_sta->sta_id, LMAC_STA_COLOR); | 740 | sta->color = GET_VAL8(umac_sta->sta_id, LMAC_STA_COLOR); |
741 | memcpy(sta->addr, umac_sta->mac_addr, ETH_ALEN); | 741 | memcpy(sta->addr, umac_sta->mac_addr, ETH_ALEN); |
@@ -750,12 +750,12 @@ static int iwm_mlme_update_sta_table(struct iwm_priv *iwm, u8 *buf, | |||
750 | sta = &iwm->sta_table[GET_VAL8(umac_sta->sta_id, LMAC_STA_ID)]; | 750 | sta = &iwm->sta_table[GET_VAL8(umac_sta->sta_id, LMAC_STA_ID)]; |
751 | 751 | ||
752 | if (!memcmp(sta->addr, umac_sta->mac_addr, ETH_ALEN)) | 752 | if (!memcmp(sta->addr, umac_sta->mac_addr, ETH_ALEN)) |
753 | sta->valid = 0; | 753 | sta->valid = false; |
754 | 754 | ||
755 | break; | 755 | break; |
756 | case UMAC_OPCODE_CLEAR_ALL: | 756 | case UMAC_OPCODE_CLEAR_ALL: |
757 | for (i = 0; i < IWM_STA_TABLE_NUM; i++) | 757 | for (i = 0; i < IWM_STA_TABLE_NUM; i++) |
758 | iwm->sta_table[i].valid = 0; | 758 | iwm->sta_table[i].valid = false; |
759 | 759 | ||
760 | break; | 760 | break; |
761 | default: | 761 | default: |
@@ -1203,7 +1203,7 @@ static int iwm_ntf_wifi_if_wrapper(struct iwm_priv *iwm, u8 *buf, | |||
1203 | 1203 | ||
1204 | switch (hdr->oid) { | 1204 | switch (hdr->oid) { |
1205 | case UMAC_WIFI_IF_CMD_SET_PROFILE: | 1205 | case UMAC_WIFI_IF_CMD_SET_PROFILE: |
1206 | iwm->umac_profile_active = 1; | 1206 | iwm->umac_profile_active = true; |
1207 | break; | 1207 | break; |
1208 | default: | 1208 | default: |
1209 | break; | 1209 | break; |
@@ -1363,7 +1363,7 @@ static int iwm_rx_handle_nonwifi(struct iwm_priv *iwm, u8 *buf, | |||
1363 | */ | 1363 | */ |
1364 | list_for_each_entry(cmd, &iwm->nonwifi_pending_cmd, pending) | 1364 | list_for_each_entry(cmd, &iwm->nonwifi_pending_cmd, pending) |
1365 | if (cmd->seq_num == seq_num) { | 1365 | if (cmd->seq_num == seq_num) { |
1366 | cmd->resp_received = 1; | 1366 | cmd->resp_received = true; |
1367 | cmd->buf.len = buf_size; | 1367 | cmd->buf.len = buf_size; |
1368 | memcpy(cmd->buf.hdr, buf, buf_size); | 1368 | memcpy(cmd->buf.hdr, buf, buf_size); |
1369 | wake_up_interruptible(&iwm->nonwifi_queue); | 1369 | wake_up_interruptible(&iwm->nonwifi_queue); |