Remove dangling white space
This commit is contained in:
parent
85b15a595f
commit
3563a05fcd
@ -122,7 +122,7 @@ void i8sak_acceptassoc_cmd(FAR struct i8sak_s *i8sak, int argc, FAR char *argv[]
|
|||||||
printf("cannot open %s, errno=%d\n", i8sak->devname, errno);
|
printf("cannot open %s, errno=%d\n", i8sak->devname, errno);
|
||||||
i8sak_cmd_error(i8sak);
|
i8sak_cmd_error(i8sak);
|
||||||
}
|
}
|
||||||
|
|
||||||
ieee802154_setassocpermit(fd, true);
|
ieee802154_setassocpermit(fd, true);
|
||||||
|
|
||||||
if (!optcnt)
|
if (!optcnt)
|
||||||
|
@ -105,7 +105,7 @@ void i8sak_chan_cmd(FAR struct i8sak_s *i8sak, int argc, FAR char *argv[])
|
|||||||
i8sak_cmd_error(i8sak); /* This exits for us */
|
i8sak_cmd_error(i8sak); /* This exits for us */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!getchan)
|
if (!getchan)
|
||||||
{
|
{
|
||||||
if (argc < argind + 1)
|
if (argc < argind + 1)
|
||||||
@ -113,7 +113,7 @@ void i8sak_chan_cmd(FAR struct i8sak_s *i8sak, int argc, FAR char *argv[])
|
|||||||
fprintf(stderr, "ERROR: missing channel\n");
|
fprintf(stderr, "ERROR: missing channel\n");
|
||||||
i8sak_cmd_error(i8sak); /* This exits for us */
|
i8sak_cmd_error(i8sak); /* This exits for us */
|
||||||
}
|
}
|
||||||
|
|
||||||
channel = i8sak_str2luint8(argv[argind]);
|
channel = i8sak_str2luint8(argv[argind]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ void i8sak_chan_cmd(FAR struct i8sak_s *i8sak, int argc, FAR char *argv[])
|
|||||||
i8sak_cmd_error(i8sak);
|
i8sak_cmd_error(i8sak);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getchan)
|
if (getchan)
|
||||||
{
|
{
|
||||||
ieee802154_getchan(fd, &channel);
|
ieee802154_getchan(fd, &channel);
|
||||||
printf("i8sak: Channel: %d\n", (int)channel);
|
printf("i8sak: Channel: %d\n", (int)channel);
|
||||||
|
@ -105,7 +105,7 @@ void i8sak_scan_cmd(FAR struct i8sak_s *i8sak, int argc, FAR char *argv[])
|
|||||||
|
|
||||||
optind = -1;
|
optind = -1;
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case 'p':
|
case 'p':
|
||||||
scan.type = IEEE802154_SCANTYPE_PASSIVE;
|
scan.type = IEEE802154_SCANTYPE_PASSIVE;
|
||||||
break;
|
break;
|
||||||
@ -144,7 +144,7 @@ void i8sak_scan_cmd(FAR struct i8sak_s *i8sak, int argc, FAR char *argv[])
|
|||||||
|
|
||||||
scan.duration = 5;
|
scan.duration = 5;
|
||||||
scan.chpage = i8sak->chpage;
|
scan.chpage = i8sak->chpage;
|
||||||
|
|
||||||
/* Parse channel list */
|
/* Parse channel list */
|
||||||
|
|
||||||
sscanf(argv[argind], "%d-%d", &minchannel, &maxchannel);
|
sscanf(argv[argind], "%d-%d", &minchannel, &maxchannel);
|
||||||
|
@ -109,7 +109,7 @@ void i8sak_tx_cmd(FAR struct i8sak_s *i8sak, int argc, FAR char *argv[])
|
|||||||
sendasdev = true;
|
sendasdev = true;
|
||||||
argind++;
|
argind++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'm':
|
case 'm':
|
||||||
sendmax = true;
|
sendmax = true;
|
||||||
argind++;
|
argind++;
|
||||||
@ -135,7 +135,7 @@ void i8sak_tx_cmd(FAR struct i8sak_s *i8sak, int argc, FAR char *argv[])
|
|||||||
{
|
{
|
||||||
i8sak->payload_len = i8sak_str2payload(argv[1], &i8sak->payload[0]);
|
i8sak->payload_len = i8sak_str2payload(argv[1], &i8sak->payload[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sendmax)
|
if (sendmax)
|
||||||
{
|
{
|
||||||
i8sak->payload_len = IEEE802154_MAX_SAFE_MAC_PAYLOAD_SIZE;
|
i8sak->payload_len = IEEE802154_MAX_SAFE_MAC_PAYLOAD_SIZE;
|
||||||
|
@ -47,16 +47,16 @@ CSRCS += ieee802154_resetreq.c ieee802154_rxenabreq.c ieee802154_scanreq.c
|
|||||||
CSRCS += ieee802154_setreq.c ieee802154_startreq.c ieee802154_syncreq.c
|
CSRCS += ieee802154_setreq.c ieee802154_startreq.c ieee802154_syncreq.c
|
||||||
CSRCS += ieee802154_pollreq.c ieee802154_enableevents.c
|
CSRCS += ieee802154_pollreq.c ieee802154_enableevents.c
|
||||||
# Add Get/Set Attribute helpers
|
# Add Get/Set Attribute helpers
|
||||||
CSRCS += ieee802154_setchan.c ieee802154_getchan.c
|
CSRCS += ieee802154_setchan.c ieee802154_getchan.c
|
||||||
CSRCS += ieee802154_setpanid.c ieee802154_getpanid.c
|
CSRCS += ieee802154_setpanid.c ieee802154_getpanid.c
|
||||||
CSRCS += ieee802154_setsaddr.c ieee802154_getsaddr.c
|
CSRCS += ieee802154_setsaddr.c ieee802154_getsaddr.c
|
||||||
CSRCS += ieee802154_seteaddr.c ieee802154_geteaddr.c
|
CSRCS += ieee802154_seteaddr.c ieee802154_geteaddr.c
|
||||||
CSRCS += ieee802154_setpromisc.c ieee802154_getpromisc.c
|
CSRCS += ieee802154_setpromisc.c ieee802154_getpromisc.c
|
||||||
CSRCS += ieee802154_setrxonidle.c ieee802154_getrxonidle.c
|
CSRCS += ieee802154_setrxonidle.c ieee802154_getrxonidle.c
|
||||||
CSRCS += ieee802154_settxpwr.c ieee802154_gettxpwr.c
|
CSRCS += ieee802154_settxpwr.c ieee802154_gettxpwr.c
|
||||||
CSRCS += ieee802154_getdevmode.c ieee802154_setassocpermit.c
|
CSRCS += ieee802154_getdevmode.c ieee802154_setassocpermit.c
|
||||||
|
|
||||||
ifeq ($(CONFIG_NET_6LOWPAN),y)
|
ifeq ($(CONFIG_NET_6LOWPAN),y)
|
||||||
# Add Get/Set Attribute helpers
|
# Add Get/Set Attribute helpers
|
||||||
CSRCS += sixlowpan_assocreq.c sixlowpan_assocresp.c sixlowpan_disassocreq.c
|
CSRCS += sixlowpan_assocreq.c sixlowpan_assocresp.c sixlowpan_disassocreq.c
|
||||||
CSRCS += sixlowpan_getreq.c sixlowpan_gtsreq.c sixlowpan_orphanresp.c
|
CSRCS += sixlowpan_getreq.c sixlowpan_gtsreq.c sixlowpan_orphanresp.c
|
||||||
@ -64,14 +64,14 @@ CSRCS += sixlowpan_resetreq.c sixlowpan_rxenabreq.c sixlowpan_scanreq.c
|
|||||||
CSRCS += sixlowpan_setreq.c sixlowpan_startreq.c sixlowpan_syncreq.c
|
CSRCS += sixlowpan_setreq.c sixlowpan_startreq.c sixlowpan_syncreq.c
|
||||||
CSRCS += sixlowpan_pollreq.c
|
CSRCS += sixlowpan_pollreq.c
|
||||||
# Add IOCTL helpers
|
# Add IOCTL helpers
|
||||||
CSRCS += sixlowpan_setchan.c sixlowpan_getchan.c
|
CSRCS += sixlowpan_setchan.c sixlowpan_getchan.c
|
||||||
CSRCS += sixlowpan_setpanid.c sixlowpan_getpanid.c
|
CSRCS += sixlowpan_setpanid.c sixlowpan_getpanid.c
|
||||||
CSRCS += sixlowpan_setsaddr.c sixlowpan_getsaddr.c
|
CSRCS += sixlowpan_setsaddr.c sixlowpan_getsaddr.c
|
||||||
CSRCS += sixlowpan_seteaddr.c sixlowpan_geteaddr.c
|
CSRCS += sixlowpan_seteaddr.c sixlowpan_geteaddr.c
|
||||||
CSRCS += sixlowpan_setpromisc.c sixlowpan_getpromisc.c
|
CSRCS += sixlowpan_setpromisc.c sixlowpan_getpromisc.c
|
||||||
CSRCS += sixlowpan_setrxonidle.c sixlowpan_getrxonidle.c
|
CSRCS += sixlowpan_setrxonidle.c sixlowpan_getrxonidle.c
|
||||||
CSRCS += sixlowpan_settxpwr.c sixlowpan_gettxpwr.c
|
CSRCS += sixlowpan_settxpwr.c sixlowpan_gettxpwr.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
AOBJS = $(ASRCS:.S=$(OBJEXT))
|
AOBJS = $(ASRCS:.S=$(OBJEXT))
|
||||||
COBJS = $(CSRCS:.c=$(OBJEXT))
|
COBJS = $(CSRCS:.c=$(OBJEXT))
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
ifeq ($(CONFIG_WIRELESS_IWPAN),y)
|
ifeq ($(CONFIG_WIRELESS_IWPAN),y)
|
||||||
|
|
||||||
CSRCS =
|
CSRCS =
|
||||||
MAINSRC = iwpan.c
|
MAINSRC = iwpan.c
|
||||||
|
|
||||||
DEPPATH += --dep-path src
|
DEPPATH += --dep-path src
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
Copyright (c) 2010, Volkan YAZICI <volkan.yazici@gmail.com>
|
Copyright (c) 2010, Volkan YAZICI <volkan.yazici@gmail.com>
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
are permitted provided that the following conditions are met:
|
are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright notice, this
|
- Redistributions of source code must retain the above copyright notice, this
|
||||||
list of conditions and the following disclaimer.
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright notice, this
|
- Redistributions in binary form must reproduce the above copyright notice, this
|
||||||
list of conditions and the following disclaimer in the documentation and/or
|
list of conditions and the following disclaimer in the documentation and/or
|
||||||
other materials provided with the distribution.
|
other materials provided with the distribution.
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user