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

staging: rtl8712: fix camel case in function r8712_generate_ie

Adhere to linux kernel coding style.

Reported by checkpatch:

CHECK: Avoid CamelCase: <beaconPeriod>

Signed-off-by: Mahak Gupta <mahak_g@cs.iitr.ac.in>
Link: https://lore.kernel.org/r/20220407120945.31030-1-mahak_g@cs.iitr.ac.in
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Mahak Gupta and committed by
Greg Kroah-Hartman
bc4f661a 847a04d6

+2 -2
+2 -2
drivers/staging/rtl8712/ieee80211.c
··· 162 162 uint sz = 0; 163 163 struct wlan_bssid_ex *dev_network = &registrypriv->dev_network; 164 164 u8 *ie = dev_network->IEs; 165 - u16 beaconPeriod = (u16)dev_network->Configuration.BeaconPeriod; 165 + u16 beacon_period = (u16)dev_network->Configuration.BeaconPeriod; 166 166 167 167 /*timestamp will be inserted by hardware*/ 168 168 sz += 8; 169 169 ie += sz; 170 170 /*beacon interval : 2bytes*/ 171 - *(__le16 *)ie = cpu_to_le16(beaconPeriod); 171 + *(__le16 *)ie = cpu_to_le16(beacon_period); 172 172 sz += 2; 173 173 ie += 2; 174 174 /*capability info*/