Skip to contentSkip to conversation

libertas: remove bss_descriptior->networktsf

PATCH In review Holger Schurig 1 participant 1 message Jul 4, 2007 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libertas: remove bss_descriptior->networktsf

This value was parsed out, but then nowhere used ... except in some debugfs output. I can't imagine anyone wanting to use this value for anything real (as no other driver exports it), so bye-bye.

Along this, made the columns of /sys/kernel/debug/libertas_wireless/*/getscantable align again.

---
 drivers/net/wireless/libertas/debugfs.c |    7 +--
 drivers/net/wireless/libertas/scan.c    |   69 -------------------------------
 drivers/net/wireless/libertas/scan.h    |    4 +-
 3 files changed, 5 insertions(+), 75 deletions(-)
drivers/net/wireless/libertas/debugfs.c +3 -4
index 4b9533a..63e747a 100644
@@ -66,7 +66,7 @@ static ssize_t libertas_getscantable(struct file *file, char __user *userbuf,
 	struct bss_descriptor * iter_bss;
 
 	pos += snprintf(buf+pos, len-pos,
-		"# | ch  | ss  |       bssid       |   cap    |    TSF   | Qual | SSID \n");
+		"# | ch  | rssi |       bssid       |   cap    | Qual | SSID \n");
 
 	mutex_lock(&priv->adapter->lock);
 	list_for_each_entry (iter_bss, &priv->adapter->network_list, list) {
@@ -75,15 +75,14 @@ static ssize_t libertas_getscantable(struct file *file, char __user *userbuf,
 		u16 spectrum_mgmt = (iter_bss->capability & WLAN_CAPABILITY_SPECTRUM_MGMT);
 
 		pos += snprintf(buf+pos, len-pos,
-			"%02u| %03d | %03ld | " MAC_FMT " |",
+			"%02u| %03d | %04ld | " MAC_FMT " |",
 			numscansdone, iter_bss->channel, iter_bss->rssi,
 			MAC_ARG(iter_bss->bssid));
 		pos += snprintf(buf+pos, len-pos, " %04x-", iter_bss->capability);
 		pos += snprintf(buf+pos, len-pos, "%c%c%c |",
 				ibss ? 'A' : 'I', privacy ? 'P' : ' ',
 				spectrum_mgmt ? 'S' : ' ');
-		pos += snprintf(buf+pos, len-pos, " %08llx |", iter_bss->networktsf);
-		pos += snprintf(buf+pos, len-pos, " %d |", SCAN_RSSI(iter_bss->rssi));
+		pos += snprintf(buf+pos, len-pos, " %04d |", SCAN_RSSI(iter_bss->rssi));
 		pos += snprintf(buf+pos, len-pos, " %s\n",
 		                escape_essid(iter_bss->ssid, iter_bss->ssid_len));
 
drivers/net/wireless/libertas/scan.c +0 -69

93 lines not on this page · raw message

drivers/net/wireless/libertas/scan.h +2 -2
index def0db5..28decf3 100644
@@ -151,7 +151,9 @@ struct bss_descriptor {
 
 	u32 atimwindow;
 
+	/* IW_MODE_AUTO, IW_MODE_ADHOC, IW_MODE_INFRA */
 	u8 mode;
+
 	/* zero-terminated array of supported data rates */
 	u8 rates[MAX_RATES + 1];
 
@@ -161,8 +163,6 @@ struct bss_descriptor {
 	union ieeetypes_phyparamset phyparamset;
 	union IEEEtypes_ssparamset ssparamset;
 
-	u64 networktsf;		//!< TSF timestamp from the current firmware TSF
-
 	struct ieeetypes_countryinfofullset countryinfo;
 
 	u8 wpa_ie[MAX_WPA_IE_LEN];
Signature · 1 line
1.5.2.1