Skip to content

Commit 520d0d7

Browse files
committed
Merge branch 'ieee802154-for-davem-2017-10-18' of git://git.kernel.org/pub/scm/linux/kernel/git/sschmidt/wpan-next
Stefan Schmidt says: ==================== pull-request: ieee802154 2017-10-18 Please find below a pull request from the ieee802154 subsystem for net-next. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 3c75f9b + 396665e commit 520d0d7

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

drivers/net/ieee802154/atusb.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545
#define ATUSB_ALLOC_DELAY_MS 100 /* delay after failed allocation */
4646
#define ATUSB_TX_TIMEOUT_MS 200 /* on the air timeout */
4747

48-
struct atusb_chip_data;
49-
5048
struct atusb {
5149
struct ieee802154_hw *hw;
5250
struct usb_device *usb_dev;
@@ -767,14 +765,14 @@ atusb_set_promiscuous_mode(struct ieee802154_hw *hw, const bool on)
767765
return 0;
768766
}
769767

770-
struct atusb_chip_data atusb_chip_data = {
768+
static struct atusb_chip_data atusb_chip_data = {
771769
.t_channel_switch = 1,
772770
.rssi_base_val = -91,
773771
.set_txpower = atusb_set_txpower,
774772
.set_channel = atusb_set_channel,
775773
};
776774

777-
struct atusb_chip_data hulusb_chip_data = {
775+
static struct atusb_chip_data hulusb_chip_data = {
778776
.t_channel_switch = 11,
779777
.rssi_base_val = -100,
780778
.set_txpower = hulusb_set_txpower,
@@ -1060,7 +1058,7 @@ static int atusb_probe(struct usb_interface *interface,
10601058
atusb_get_and_show_build(atusb);
10611059
atusb_set_extended_addr(atusb);
10621060

1063-
if (atusb->fw_ver_maj >= 0 && atusb->fw_ver_min >= 3)
1061+
if ((atusb->fw_ver_maj == 0 && atusb->fw_ver_min >= 3) || atusb->fw_ver_maj > 0)
10641062
hw->flags |= IEEE802154_HW_FRAME_RETRIES;
10651063

10661064
ret = atusb_get_and_clear_error(atusb);

net/ieee802154/netlink.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ int ieee802154_nl_reply(struct sk_buff *msg, struct genl_info *info)
8989
return genlmsg_reply(msg, info);
9090
}
9191

92-
static const struct genl_ops ieee8021154_ops[] = {
92+
static const struct genl_ops ieee802154_ops[] = {
9393
/* see nl-phy.c */
9494
IEEE802154_DUMP(IEEE802154_LIST_PHY, ieee802154_list_phy,
9595
ieee802154_dump_phy),
@@ -137,8 +137,8 @@ struct genl_family nl802154_family __ro_after_init = {
137137
.version = 1,
138138
.maxattr = IEEE802154_ATTR_MAX,
139139
.module = THIS_MODULE,
140-
.ops = ieee8021154_ops,
141-
.n_ops = ARRAY_SIZE(ieee8021154_ops),
140+
.ops = ieee802154_ops,
141+
.n_ops = ARRAY_SIZE(ieee802154_ops),
142142
.mcgrps = ieee802154_mcgrps,
143143
.n_mcgrps = ARRAY_SIZE(ieee802154_mcgrps),
144144
};

0 commit comments

Comments
 (0)