Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: ks7010: rename RecvMIC to recv_mic

Identifier uses camel case, standard kernel style does not use camel
case.

Rename buffer 'RecvMIC' to 'recv_mic'.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Tobin C. Harding and committed by
Greg Kroah-Hartman
37ab542e ba932876

+3 -3
+3 -3
drivers/staging/ks7010/ks_hostif.c
··· 312 312 { 313 313 struct ether_hdr *eth_hdr; 314 314 unsigned short eth_proto; 315 - unsigned char RecvMIC[8]; 315 + unsigned char recv_mic[8]; 316 316 char buf[128]; 317 317 unsigned long now; 318 318 struct mic_failure_t *mic_failure; ··· 343 343 DPRINTK(4, "TKIP: protocol=%04X: size=%u\n", 344 344 eth_proto, priv->rx_size); 345 345 /* MIC save */ 346 - memcpy(&RecvMIC[0], (priv->rxp) + ((priv->rx_size) - 8), 8); 346 + memcpy(&recv_mic[0], (priv->rxp) + ((priv->rx_size) - 8), 8); 347 347 priv->rx_size = priv->rx_size - 8; 348 348 if (auth_type > 0 && auth_type < 4) { /* auth_type check */ 349 349 MichaelMICFunction(&michael_mic, ··· 353 353 (uint8_t)0, /* priority */ 354 354 (uint8_t *)michael_mic.Result); 355 355 } 356 - if (memcmp(michael_mic.Result, RecvMIC, 8) != 0) { 356 + if (memcmp(michael_mic.Result, recv_mic, 8) != 0) { 357 357 now = jiffies; 358 358 mic_failure = &priv->wpa.mic_failure; 359 359 /* MIC FAILURE */