Various symbols are named 'michel*'. The keyed hash function name is spelled 'Michael'. Rename symbols michel -> michael. Signed-off-by: Tobin C. Harding <me@xxxxxxxx> --- drivers/staging/ks7010/ks_hostif.c | 16 ++++++++-------- drivers/staging/ks7010/michael_mic.c | 8 ++++---- drivers/staging/ks7010/michael_mic.h | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index edeefea..4256b10 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -316,7 +316,7 @@ int hostif_data_indication_wpa(struct ks_wlan_private *priv, unsigned int auth_t char buf[128]; unsigned long now; struct mic_failure_t *mic_failure; - struct michel_mic_t michel_mic; + struct mihcael_mic_t mihcael_mic; union iwreq_data wrqu; eth_hdr = (struct ether_hdr *)(priv->rxp); @@ -348,10 +348,10 @@ int hostif_data_indication_wpa(struct ks_wlan_private *priv, unsigned int auth_t (priv->rxp) + ((priv->rx_size) - 8), 8); priv->rx_size = priv->rx_size - 8; if (auth_type > 0 && auth_type < 4) { /* auth_type check */ - MichaelMICFunction(&michel_mic, (u8 *)priv->wpa.key[auth_type - 1].rx_mic_key, (u8 *)priv->rxp, (int)priv->rx_size, (u8)0, /* priority */ - (u8 *)michel_mic.Result); + MichaelMICFunction(&mihcael_mic, (u8 *)priv->wpa.key[auth_type - 1].rx_mic_key, (u8 *)priv->rxp, (int)priv->rx_size, (u8)0, /* priority */ + (u8 *)mihcael_mic.Result); } - if (memcmp(michel_mic.Result, RecvMIC, 8)) { + if (memcmp(mihcael_mic.Result, RecvMIC, 8)) { now = jiffies; mic_failure = &priv->wpa.mic_failure; /* MIC FAILURE */ @@ -1128,7 +1128,7 @@ int hostif_data_request(struct ks_wlan_private *priv, struct sk_buff *packet) int result = 0; unsigned short eth_proto; struct ether_hdr *eth_hdr; - struct michel_mic_t michel_mic; + struct mihcael_mic_t mihcael_mic; unsigned short keyinfo = 0; struct ieee802_1x_hdr *aa1x_hdr; struct wpa_eapol_key *eap_key; @@ -1236,10 +1236,10 @@ int hostif_data_request(struct ks_wlan_private *priv, struct sk_buff *packet) pp->auth_type = cpu_to_le16((u16)TYPE_AUTH); /* no encryption */ } else { if (priv->wpa.pairwise_suite == IW_AUTH_CIPHER_TKIP) { - MichaelMICFunction(&michel_mic, (u8 *)priv->wpa.key[0].tx_mic_key, (u8 *)&pp->data[0], (int)packet_len, (u8)0, /* priority */ - (u8 *)michel_mic. + MichaelMICFunction(&mihcael_mic, (u8 *)priv->wpa.key[0].tx_mic_key, (u8 *)&pp->data[0], (int)packet_len, (u8)0, /* priority */ + (u8 *)mihcael_mic. Result); - memcpy(p, michel_mic.Result, 8); + memcpy(p, mihcael_mic.Result, 8); length += 8; packet_len += 8; p += 8; diff --git a/drivers/staging/ks7010/michael_mic.c b/drivers/staging/ks7010/michael_mic.c index f6e70fa..5b98c0a 100644 --- a/drivers/staging/ks7010/michael_mic.c +++ b/drivers/staging/ks7010/michael_mic.c @@ -38,7 +38,7 @@ do { \ } while (0) static -void MichaelInitializeFunction(struct michel_mic_t *Mic, uint8_t *key) +void MichaelInitializeFunction(struct mihcael_mic_t *Mic, uint8_t *key) { // Set the key Mic->K0 = getUInt32(key, 0); @@ -61,7 +61,7 @@ do { \ } while (0) static -void MichaelAppend(struct michel_mic_t *Mic, uint8_t *src, int nBytes) +void MichaelAppend(struct mihcael_mic_t *Mic, uint8_t *src, int nBytes) { int addlen; @@ -96,7 +96,7 @@ void MichaelAppend(struct michel_mic_t *Mic, uint8_t *src, int nBytes) } static -void MichaelGetMIC(struct michel_mic_t *Mic, uint8_t *dst) +void MichaelGetMIC(struct mihcael_mic_t *Mic, uint8_t *dst) { u8 *data = Mic->M; @@ -125,7 +125,7 @@ void MichaelGetMIC(struct michel_mic_t *Mic, uint8_t *dst) MichaelClear(Mic); } -void MichaelMICFunction(struct michel_mic_t *Mic, u8 *Key, +void MichaelMICFunction(struct mihcael_mic_t *Mic, u8 *Key, u8 *Data, int Len, u8 priority, u8 *Result) { diff --git a/drivers/staging/ks7010/michael_mic.h b/drivers/staging/ks7010/michael_mic.h index 248f849..51ea2eb 100644 --- a/drivers/staging/ks7010/michael_mic.h +++ b/drivers/staging/ks7010/michael_mic.h @@ -10,7 +10,7 @@ */ /* MichelMIC routine define */ -struct michel_mic_t { +struct mihcael_mic_t { u32 K0; // Key u32 K1; // Key u32 L; // Current state @@ -20,6 +20,6 @@ struct michel_mic_t { u8 Result[8]; }; -void MichaelMICFunction(struct michel_mic_t *Mic, u8 *Key, +void MichaelMICFunction(struct mihcael_mic_t *Mic, u8 *Key, u8 *Data, int Len, u8 priority, u8 *Result); -- 2.7.4 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel