mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 01:04:08 +08:00
Staging: wlan-ng: fix p80211wext_mhz_to_channel for channel 14
Channel 14 is 2484 Mhz (cf p80211wext_channel_to_mhz) so this patch corrects what seems to be just a typo. Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
9d3b3bb0b5
commit
044bc96bef
@ -73,7 +73,7 @@ static u8 p80211_mhz_to_channel(u16 mhz)
|
|||||||
if (mhz >= 5000)
|
if (mhz >= 5000)
|
||||||
return (mhz - 5000) / 5;
|
return (mhz - 5000) / 5;
|
||||||
|
|
||||||
if (mhz == 2482)
|
if (mhz == 2484)
|
||||||
return 14;
|
return 14;
|
||||||
|
|
||||||
if (mhz >= 2407)
|
if (mhz >= 2407)
|
||||||
|
Loading…
Reference in New Issue
Block a user