diff options
| -rw-r--r-- | Documentation/ABI/testing/sysfs-class-net-qmi | 4 | ||||
| -rw-r--r-- | drivers/net/usb/qmi_wwan.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-net-qmi b/Documentation/ABI/testing/sysfs-class-net-qmi index 7122d6264c49..c310db4ccbc2 100644 --- a/Documentation/ABI/testing/sysfs-class-net-qmi +++ b/Documentation/ABI/testing/sysfs-class-net-qmi | |||
| @@ -29,7 +29,7 @@ Contact: Bjørn Mork <bjorn@mork.no> | |||
| 29 | Description: | 29 | Description: |
| 30 | Unsigned integer. | 30 | Unsigned integer. |
| 31 | 31 | ||
| 32 | Write a number ranging from 1 to 127 to add a qmap mux | 32 | Write a number ranging from 1 to 254 to add a qmap mux |
| 33 | based network device, supported by recent Qualcomm based | 33 | based network device, supported by recent Qualcomm based |
| 34 | modems. | 34 | modems. |
| 35 | 35 | ||
| @@ -46,5 +46,5 @@ Contact: Bjørn Mork <bjorn@mork.no> | |||
| 46 | Description: | 46 | Description: |
| 47 | Unsigned integer. | 47 | Unsigned integer. |
| 48 | 48 | ||
| 49 | Write a number ranging from 1 to 127 to delete a previously | 49 | Write a number ranging from 1 to 254 to delete a previously |
| 50 | created qmap mux based network device. | 50 | created qmap mux based network device. |
diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c index c6fbc2a2a785..780c10ee359b 100644 --- a/drivers/net/usb/qmi_wwan.c +++ b/drivers/net/usb/qmi_wwan.c | |||
| @@ -429,8 +429,8 @@ static ssize_t add_mux_store(struct device *d, struct device_attribute *attr, c | |||
| 429 | if (kstrtou8(buf, 0, &mux_id)) | 429 | if (kstrtou8(buf, 0, &mux_id)) |
| 430 | return -EINVAL; | 430 | return -EINVAL; |
| 431 | 431 | ||
| 432 | /* mux_id [1 - 0x7f] range empirically found */ | 432 | /* mux_id [1 - 254] for compatibility with ip(8) and the rmnet driver */ |
| 433 | if (mux_id < 1 || mux_id > 0x7f) | 433 | if (mux_id < 1 || mux_id > 254) |
| 434 | return -EINVAL; | 434 | return -EINVAL; |
| 435 | 435 | ||
| 436 | if (!rtnl_trylock()) | 436 | if (!rtnl_trylock()) |
