]> Pileus Git - ~andy/linux/blobdiff - drivers/net/wireless/wl12xx/wl1251_rx.c
wl1251: remove copyright contact person
[~andy/linux] / drivers / net / wireless / wl12xx / wl1251_rx.c
index 851515836a7f6217085ccbd5f32bf38798ab63ac..25764592a596c26e412d300bc36d6028cfb34ce8 100644 (file)
@@ -4,8 +4,6 @@
  * Copyright (c) 1998-2007 Texas Instruments Incorporated
  * Copyright (C) 2008 Nokia Corporation
  *
- * Contact: Kalle Valo <kalle.valo@nokia.com>
- *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
  * version 2 as published by the Free Software Foundation.
@@ -74,6 +72,12 @@ static void wl1251_rx_status(struct wl1251 *wl,
 
        status->signal = desc->rssi;
 
+       /*
+        * FIXME: guessing that snr needs to be divided by two, otherwise
+        * the values don't make any sense
+        */
+       wl->noise = desc->rssi - desc->snr / 2;
+
        status->freq = ieee80211_channel_to_frequency(desc->channel);
 
        status->flag |= RX_FLAG_TSFT;