Commit f359d3fe authored by Weilong Chen's avatar Weilong Chen Committed by Johannes Berg
Browse files

mac80211: fix checkpatch errors



Fix a number of different checkpatch errors.
Signed-off-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 204e35a9
...@@ -111,7 +111,7 @@ void ieee80211_aes_cmac(struct crypto_cipher *tfm, const u8 *aad, ...@@ -111,7 +111,7 @@ void ieee80211_aes_cmac(struct crypto_cipher *tfm, const u8 *aad,
} }
struct crypto_cipher * ieee80211_aes_cmac_key_setup(const u8 key[]) struct crypto_cipher *ieee80211_aes_cmac_key_setup(const u8 key[])
{ {
struct crypto_cipher *tfm; struct crypto_cipher *tfm;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <linux/crypto.h> #include <linux/crypto.h>
struct crypto_cipher * ieee80211_aes_cmac_key_setup(const u8 key[]); struct crypto_cipher *ieee80211_aes_cmac_key_setup(const u8 key[]);
void ieee80211_aes_cmac(struct crypto_cipher *tfm, const u8 *aad, void ieee80211_aes_cmac(struct crypto_cipher *tfm, const u8 *aad,
const u8 *data, size_t data_len, u8 *mic); const u8 *data, size_t data_len, u8 *mic);
void ieee80211_aes_cmac_key_free(struct crypto_cipher *tfm); void ieee80211_aes_cmac_key_free(struct crypto_cipher *tfm);
......
...@@ -135,7 +135,7 @@ minstrel_update_stats(struct minstrel_priv *mp, struct minstrel_sta_info *mi) ...@@ -135,7 +135,7 @@ minstrel_update_stats(struct minstrel_priv *mp, struct minstrel_sta_info *mi)
u32 usecs; u32 usecs;
int i; int i;
for (i=0; i < MAX_THR_RATES; i++) for (i = 0; i < MAX_THR_RATES; i++)
tmp_tp_rate[i] = 0; tmp_tp_rate[i] = 0;
for (i = 0; i < mi->n_rates; i++) { for (i = 0; i < mi->n_rates; i++) {
...@@ -190,7 +190,7 @@ minstrel_update_stats(struct minstrel_priv *mp, struct minstrel_sta_info *mi) ...@@ -190,7 +190,7 @@ minstrel_update_stats(struct minstrel_priv *mp, struct minstrel_sta_info *mi)
* choose the maximum throughput rate as max_prob_rate * choose the maximum throughput rate as max_prob_rate
* (2) if all success probabilities < 95%, the rate with * (2) if all success probabilities < 95%, the rate with
* highest success probability is choosen as max_prob_rate */ * highest success probability is choosen as max_prob_rate */
if (mr->probability >= MINSTREL_FRAC(95,100)) { if (mr->probability >= MINSTREL_FRAC(95, 100)) {
if (mr->cur_tp >= mi->r[tmp_prob_rate].cur_tp) if (mr->cur_tp >= mi->r[tmp_prob_rate].cur_tp)
tmp_prob_rate = i; tmp_prob_rate = i;
} else { } else {
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
#define CCK_DURATION(_bitrate, _short, _len) \ #define CCK_DURATION(_bitrate, _short, _len) \
(1000 * (10 /* SIFS */ + \ (1000 * (10 /* SIFS */ + \
(_short ? 72 + 24 : 144 + 48 ) + \ (_short ? 72 + 24 : 144 + 48) + \
(8 * (_len + 4) * 10) / (_bitrate))) (8 * (_len + 4) * 10) / (_bitrate)))
#define CCK_ACK_DURATION(_bitrate, _short) \ #define CCK_ACK_DURATION(_bitrate, _short) \
......
...@@ -553,7 +553,7 @@ TRACE_EVENT(drv_update_tkip_key, ...@@ -553,7 +553,7 @@ TRACE_EVENT(drv_update_tkip_key,
TP_printk( TP_printk(
LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT " iv32:%#x", LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT " iv32:%#x",
LOCAL_PR_ARG,VIF_PR_ARG,STA_PR_ARG, __entry->iv32 LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG, __entry->iv32
) )
); );
......
...@@ -2161,7 +2161,7 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb, ...@@ -2161,7 +2161,7 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
if (ieee80211_is_data_qos(fc)) { if (ieee80211_is_data_qos(fc)) {
__le16 *qos_control; __le16 *qos_control;
qos_control = (__le16*) skb_push(skb, 2); qos_control = (__le16 *) skb_push(skb, 2);
memcpy(skb_push(skb, hdrlen - 2), &hdr, hdrlen - 2); memcpy(skb_push(skb, hdrlen - 2), &hdr, hdrlen - 2);
/* /*
* Maybe we could actually set some fields here, for now just * Maybe we could actually set some fields here, for now just
...@@ -2323,7 +2323,7 @@ static void __ieee80211_beacon_add_tim(struct ieee80211_sub_if_data *sdata, ...@@ -2323,7 +2323,7 @@ static void __ieee80211_beacon_add_tim(struct ieee80211_sub_if_data *sdata,
if (atomic_read(&ps->num_sta_ps) > 0) if (atomic_read(&ps->num_sta_ps) > 0)
/* in the hope that this is faster than /* in the hope that this is faster than
* checking byte-for-byte */ * checking byte-for-byte */
have_bits = !bitmap_empty((unsigned long*)ps->tim, have_bits = !bitmap_empty((unsigned long *)ps->tim,
IEEE80211_MAX_AID+1); IEEE80211_MAX_AID+1);
if (ps->dtim_count == 0) if (ps->dtim_count == 0)
......
...@@ -76,7 +76,7 @@ u8 *ieee80211_get_bssid(struct ieee80211_hdr *hdr, size_t len, ...@@ -76,7 +76,7 @@ u8 *ieee80211_get_bssid(struct ieee80211_hdr *hdr, size_t len,
} }
if (ieee80211_is_ctl(fc)) { if (ieee80211_is_ctl(fc)) {
if(ieee80211_is_pspoll(fc)) if (ieee80211_is_pspoll(fc))
return hdr->addr1; return hdr->addr1;
if (ieee80211_is_back_req(fc)) { if (ieee80211_is_back_req(fc)) {
......
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