diff options
Diffstat (limited to 'drivers/net/hamradio/baycom_epp.c')
-rw-r--r-- | drivers/net/hamradio/baycom_epp.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/net/hamradio/baycom_epp.c b/drivers/net/hamradio/baycom_epp.c index 3c33d6f6a6a6..8a83db0fb3b7 100644 --- a/drivers/net/hamradio/baycom_epp.c +++ b/drivers/net/hamradio/baycom_epp.c | |||
@@ -1141,12 +1141,6 @@ static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | |||
1141 | */ | 1141 | */ |
1142 | static void baycom_probe(struct net_device *dev) | 1142 | static void baycom_probe(struct net_device *dev) |
1143 | { | 1143 | { |
1144 | static char ax25_bcast[AX25_ADDR_LEN] = { | ||
1145 | 'Q' << 1, 'S' << 1, 'T' << 1, ' ' << 1, ' ' << 1, ' ' << 1, '0' << 1 | ||
1146 | }; | ||
1147 | static char ax25_nocall[AX25_ADDR_LEN] = { | ||
1148 | 'L' << 1, 'I' << 1, 'N' << 1, 'U' << 1, 'X' << 1, ' ' << 1, '1' << 1 | ||
1149 | }; | ||
1150 | const struct hdlcdrv_channel_params dflt_ch_params = { | 1144 | const struct hdlcdrv_channel_params dflt_ch_params = { |
1151 | 20, 2, 10, 40, 0 | 1145 | 20, 2, 10, 40, 0 |
1152 | }; | 1146 | }; |
@@ -1182,8 +1176,8 @@ static void baycom_probe(struct net_device *dev) | |||
1182 | dev->hard_header_len = AX25_MAX_HEADER_LEN + AX25_BPQ_HEADER_LEN; | 1176 | dev->hard_header_len = AX25_MAX_HEADER_LEN + AX25_BPQ_HEADER_LEN; |
1183 | dev->mtu = AX25_DEF_PACLEN; /* eth_mtu is the default */ | 1177 | dev->mtu = AX25_DEF_PACLEN; /* eth_mtu is the default */ |
1184 | dev->addr_len = AX25_ADDR_LEN; /* sizeof an ax.25 address */ | 1178 | dev->addr_len = AX25_ADDR_LEN; /* sizeof an ax.25 address */ |
1185 | memcpy(dev->broadcast, ax25_bcast, AX25_ADDR_LEN); | 1179 | memcpy(dev->broadcast, &ax25_bcast, AX25_ADDR_LEN); |
1186 | memcpy(dev->dev_addr, ax25_nocall, AX25_ADDR_LEN); | 1180 | memcpy(dev->dev_addr, &ax25_nocall, AX25_ADDR_LEN); |
1187 | dev->tx_queue_len = 16; | 1181 | dev->tx_queue_len = 16; |
1188 | 1182 | ||
1189 | /* New style flags */ | 1183 | /* New style flags */ |