Skip to contentSkip to conversation

hso should register as a WWAN rfkill device, not WLAN

PATCH In review Jonathan McDowell 2 participants 2 messages Nov 4, 2008

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hso should register as a WWAN rfkill device, not WLAN

Currently the hso driver registers a WLAN rfkill switch, which is intended for 802.11 wireless network devices. Given that this driver supports GSM/HSPA devices it's more appropriate to register a WWAN rfkill switch type.

-----

drivers/net/usb/hso.c +1 -1
index 1164c52..3f49e83 100644
@@ -2188,7 +2188,7 @@ static void hso_create_rfkill(struct hso_device *hso_dev,
 	char *rfkn;
 
 	hso_net->rfkill = rfkill_allocate(&interface_to_usbdev(interface)->dev,
-				 RFKILL_TYPE_WLAN);
+				 RFKILL_TYPE_WWAN);
 	if (!hso_net->rfkill) {
 		dev_err(dev, "%s - Out of memory\n", __func__);
 		return;

-----

J.

Signature · 1 line
Revd. Jonathan McDowell, ULC | Settle down, Beavis.
#1 lore raw
Quoted 4 lines · Jonathan McDowell

Currently the hso driver registers a WLAN rfkill switch, which is intended for 802.11 wireless network devices. Given that this driver supports GSM/HSPA devices it's more appropriate to register a WWAN rfkill switch type.

Cool!!! We both sent the same patch almost at the same time :)

Quoted 1 line