unsigned int modem = 0;
int len = clen;
- if (debug & 16)
- pr_debug("%s: %d bytes for tty %p\n", __func__, len, tty);
+ pr_err("%s: %d bytes for tty %d\n", __func__, len, dlci->addr);
if (tty) {
switch (dlci->adaption) {
}
if (gsm->fcs != GOOD_FCS) {
gsm->bad_fcs++;
- if (debug & 4)
- pr_debug("BAD FCS %02x\n", gsm->fcs);
+ pr_err("BAD FCS %02x\n", gsm->fcs);
return;
}
address = gsm->address >> 1;
gsm->state = GSM_SEARCH;
break;
}
- pr_debug("wait for GSM0_SOF, while got 0x%x\n", (u32)c);
+ pr_err("wait for GSM0_SOF, while got 0x%x\n", (u32)c);
break;
}
}
static int gsm_mux_net_open(struct net_device *net)
{
- pr_debug("%s called\n", __func__);
+ pr_err("%s called\n", __func__);
netif_start_queue(net);
return 0;
}
if (dlci->net) {
dlci->adaption = 1;
dlci->data = gsm_dlci_data;
+ pr_err("net_free %d", kfifo_len(dlci->fifo));
unregister_netdev(dlci->net);
free_netdev(dlci->net);
dlci->net = 0;
mux_net->dlci = dlci;
kref_init(&mux_net->ref);
strncpy(nc->if_name, net->name, IFNAMSIZ); /* return net name */
+ pr_err("netif done");
return net->ifindex; /* return network index */
error_ret:
switch (cmd) {
case GSMIOC_ENABLE_NET:
+ pr_err("GSMIOC_ENABLE_NET");
if (copy_from_user(&nc, (void __user *)arg, sizeof(nc)))
return -EFAULT;
nc.if_name[IFNAMSIZ-1] = '\0';
return -EFAULT;
return index;
case GSMIOC_DISABLE_NET:
+ pr_err("GSMIOC_DISABLE_NET");
if (!capable(CAP_NET_ADMIN))
return -EPERM;
gsm_destroy_network(dlci);