lkml.org 
[lkml]   [2010]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/3] staging wlan-ng: fix p80211wext_mhz_to_channel for channel 14
Date
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>
---
drivers/staging/wlan-ng/p80211wext.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/wlan-ng/p80211wext.c b/drivers/staging/wlan-ng/p80211wext.c
index 94d933c..6b4d3e4 100644
--- a/drivers/staging/wlan-ng/p80211wext.c
+++ b/drivers/staging/wlan-ng/p80211wext.c
@@ -75,7 +75,7 @@ static u8 p80211_mhz_to_channel(u16 mhz)
if (mhz >= 5000)
return (mhz - 5000) / 5;

- if (mhz == 2482)
+ if (mhz == 2484)
return 14;

if (mhz >= 2407)
--
1.6.6.1


\
 
 \ /
  Last update: 2010-03-17 16:27    [W:0.030 / U:0.976 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site