Commit Graph

301 Commits

Author SHA1 Message Date
Anthony Merlino
95e797fceb ieee802154: Fixes setting devmode logic 2017-07-13 03:17:05 -04:00
Anthony Merlino
e466ade385 ieee802154: Set devmode to endpoint on MAC layer reset 2017-07-12 00:59:38 -04:00
Anthony Merlino
a846459bec ieee802154: Minor formatting fixes 2017-07-12 00:57:55 -04:00
Anthony Merlino
420db06b37 ieee802154: Notify radio layer of changes in devmode 2017-07-12 00:53:04 -04:00
Anthony Merlino
35289e6d0e ieee802154: Minor reformatting 2017-07-11 20:36:50 -04:00
Anthony Merlino
6e680bb967 ieee802154: Fixes warning for unused variable 2017-07-10 19:45:29 -04:00
Anthony Merlino
fce023b146 wireless/ieee802154: Removes trailing whitespace 2017-07-10 13:11:43 -04:00
Anthony Merlino
b9a9ba7dd0 ieee802154: Adds configuration options for verbose logging of certain features, to aid in debugging 2017-07-10 13:06:12 -04:00
Anthony Merlino
93cdae50fc ieee802154: Improves internal timer logic to handle work serially
Before, the MAC timer used a watchdog to schedule work with the high priority worker queue.  However, since everything in the MAC is supposed to be serialized through the use of the high priority work queue, but the timer uses a watchdog, there are some unintended consequences. To simplify, we now use the delayed work feature of the work queue.
2017-07-10 13:06:12 -04:00
Gregory Nutt
4547309571 Remove carriage return endings and dangling white space at the end of lines 2017-07-09 16:53:08 -06:00
Anthony Merlino
c8c31810dc ieee802154: Minor renaming. purge_time -> purgetime 2017-07-09 18:38:56 -04:00
Anthony Merlino
c72eb1b39b ieee802154: mac802154_purge_timeout was not unlocking MAC before returning 2017-07-09 17:59:22 -04:00
Anthony Merlino
4cf2d0a6a8 ieee802154: Changes mac locking/unlocking to aid in debugging 2017-07-07 23:31:23 -04:00
Gregory Nutt
053b6e3d9f Fix dangling white space at the end of lines. 2017-07-03 10:08:49 -06:00
Anthony Merlino
032deb5f49 ieee802154: Supports multiple incoming superframe events 2017-07-01 17:05:42 -04:00
Anthony Merlino
7d9c4ace34 ieee802154: Cleans up some wireless logging 2017-07-01 17:05:42 -04:00
Anthony Merlino
29e028f7ac ieee802154: Minor renaming to align better with coding guidelines 2017-07-01 17:05:42 -04:00
Anthony Merlino
5ca18999a5 ieee802154: Random fixes to get beacon-enabled networking more stable 2017-07-01 17:05:42 -04:00
Anthony Merlino
b981ced4d4 ieee802154: Finishes beacon association functionality 2017-07-01 17:05:42 -04:00
Anthony Merlino
6b17d5ccc9 ieee802154: Minor changes to align closer with coding standard 2017-07-01 17:05:42 -04:00
Anthony Merlino
4349538f92 ieee802154: Blocks out a few more sections of template code to avoid warnings 2017-07-01 17:05:42 -04:00
Anthony Merlino
ce8f2735ea ieee802154: Improves notification freeing functionality
Each notification now has a number of clients.  When the last client calls free, the notification is freed back to the pool
2017-07-01 17:05:42 -04:00
Anthony Merlino
3a427d35a3 ieee802154: Blocks out template code that is not complete to avoid warnings 2017-07-01 17:05:42 -04:00
Anthony Merlino
609934530d ieee802154: Renames mac802154_indalloc to ieee802154_indalloc since the functions are ieee802154 scoped functions 2017-07-01 17:05:42 -04:00
Anthony Merlino
367153adc9 ieee802154: Supports get request for coordinator address 2017-06-27 18:26:20 -04:00
Gregory Nutt
4257672a18 Merge remote-tracking branch 'origin/master' into beacon802154 2017-06-26 11:04:49 -06:00
Gregory Nutt
1f81b14610 Beacon logic: Damage control. Looks like something went wrong with the PR merge. 2017-06-26 11:03:44 -06:00
Gregory Nutt
aa1708e7c0 6LoWPAN: Update README; fix duplicate and bad memcpy in loopback driver. 2017-06-26 10:53:57 -06:00
Anthony Merlino
da8afe9d9e ieee802154: Finishes transmission of beacon frames, and performing a passive scan 2017-06-25 18:08:00 -04:00
Anthony Merlino
bdf4836ac7 ieee802154: Stubs out some SCAN.request code 2017-06-25 18:08:00 -04:00
Anthony Merlino
683bd6e10e ieee802154: Adds some missing elements to start support for beacon-enabled networks 2017-06-25 18:08:00 -04:00
Gregory Nutt
ff08f799ca IEEE802.15.4: Update RX statistics in network driver. Update README files. 2017-06-25 11:18:27 -06:00
Gregory Nutt
73d32a962d 6LoWPAN: HC06, copy TCP header as though it were data. 2017-06-24 18:29:07 -06:00
Anthony Merlino
8831d6e1d4 ieee802154: Minor renaming to align better with coding style standard 2017-06-23 14:51:29 -04:00
Gregory Nutt
328a464f99 6LoWPAN: Fix a typo in an index that prevented use with HC1 and extended addresses. 2017-06-23 10:08:03 -06:00
Gregory Nutt
1a46ea644d 6LoWPAN: Add missing IPv6 address creation to HC1 decode logic. 2017-06-23 09:45:09 -06:00
Gregory Nutt
9c2f67c477 6LoWPAN: Fix a src/dest address confusion 2017-06-22 16:04:40 -06:00
Gregory Nutt
922454d515 6LoWPAN: Loopback driver needs to initialize the MAC meta data; Address decompression logic must have the MAC address to handle the most common compression cases. 2017-06-22 13:55:08 -06:00
Gregory Nutt
bc8ad02ee5 6LoWPAN: Various fixes from retesting on simulator with short addressing. 2017-06-22 11:42:52 -06:00
Gregory Nutt
b5994560cc 6LoWPAN: Fixes needed when extended addressing is enabled. Currently breaks short addressing. 2017-06-22 09:28:25 -06:00
Gregory Nutt
05590a2228 6LoWPAN: Correct a few addressing issues. The apps/examples/udp test now appears to be fully functional. Also reserve two bytes at the end of the frame for the FCS. 2017-06-21 13:43:53 -06:00
Gregory Nutt
2397bc728b Add some comments to a Kconfig file; Fix a typo introduced in previous commit. 2017-06-21 10:40:36 -06:00
Gregory Nutt
a12ff2836c Fixes from review of last PR 2017-06-21 10:15:23 -06:00
Anthony Merlino
cf53c9767e Merged in merlin17/nuttx/ieee802154 (pull request #415)
wireless/ieee802154: Minor naming change to align better with coding guidelines

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-21 16:11:12 +00:00
Gregory Nutt
26cfafdbca Back out a previous (good) change in hope of eliminating PR conflict. 2017-06-21 10:10:13 -06:00
Gregory Nutt
0d290904af Renaming in hope of eliminating a conflict with a pending PR. 2017-06-21 10:08:25 -06:00
Gregory Nutt
e7e8228b00 Missing option to select CONFIG_MAC802154_NNOTIF in Kconfig 2017-06-21 07:35:09 -06:00
Gregory Nutt
4931792700 Make naming of NTXDESC consistent. I don't know where it should be MAC or IEEE, gut I changed the one that affects the fewest files. 2017-06-21 06:56:34 -06:00
Anthony Merlino
9b2df31adc ieee802154: Fixes Kconfig naming for number of TX desc and number of notifications 2017-06-21 01:00:42 -04:00
Anthony Merlino
45a32a116b wireless/ieee802154: Minor naming change to align better with coding guidelines 2017-06-20 19:14:05 -04:00
Gregory Nutt
cca0013674 Fix some backward arguments in the debug statement 2017-06-20 16:06:35 -06:00
Gregory Nutt
cd8ac3f070 ieee802154 MAC: Free allocated TX descriptor if an error occurs after the descriptor has been allocated. 2017-06-20 15:00:23 -06:00
Gregory Nutt
d9f549121c ieee802154_req_data: Don't modify the IOB until we are certain that no EINTR errors will occur. Otherwise, the retry will fail 2017-06-20 14:27:22 -06:00
Gregory Nutt
192bacbd7f ieee802154 network driver now retries if ieee802154_req_data() returns EINTR. In clicker2-stm32 6LoWPAN configuration, increased the number of TX descriptors to match then number of IOBs. 2017-06-20 13:30:17 -06:00
Gregory Nutt
d3b9ea9d66 Trivial.. missing newlines in debug output 2017-06-20 11:50:04 -06:00
Gregory Nutt
e0b1bb6c5f 802.15.4 MAC: Fix some errors in the previous commit. 2017-06-20 11:33:03 -06:00
Gregory Nutt
a82ab4b729 mac802154_req_data() can return without releasing the exclsem 2017-06-20 11:23:31 -06:00
Gregory Nutt
6dafb4f532 6LoWPAN: Add debug statements; Update configuration, need to specific 6LoWPAN compatible port numbers. 2017-06-20 10:37:32 -06:00
Anthony Merlino
0603d34ad9 wireless/ieee80215: Fixes poll request issue 2017-06-19 15:55:14 -04:00
Anthony Merlino
fc4f1de766 wireless/ieee802154: Cleans up some endianness issues 2017-06-19 15:55:14 -04:00
Gregory Nutt
cd82d03ddf IEEE 802.15.4/6LoWPAN: Correct one more usage of saddr; also update a README and the TODO list. 2017-06-19 07:31:52 -06:00
Gregory Nutt
f685f30fb2 Changes from review of last PR 2017-06-19 07:04:08 -06:00
Anthony Merlino
b1ce07deb1 Swithches IEEE 802.15.4 based code to using byte arrays instead of uint16_t values for short address and PAN ID 2017-06-19 05:55:28 -04:00
Gregory Nutt
cfea8adacb L should be capitalized in 6LoWPAN 2017-06-18 16:00:08 -06:00
Gregory Nutt
84a75996fb IEEE 802.15.4 Network Driver: Add logic to setup the network mask, update the MAC-based IPv6 addressing when the network is brought up. The idea is that addressing changes are supposed to occur only while the network is down but won't take effect until the network is up again. 2017-06-18 15:26:56 -06:00
Gregory Nutt
6162a84f80 ieee 802.15.4: Need counting protection on the logic that releases the notification resources. Otherwise, notification handlers may be operating with a stale pointer. 2017-06-18 13:33:07 -06:00
Gregory Nutt
2d4ba3ee3f IEEE 802.15.4 MAC: Add list management and prioritization logic that will permit the MAC layer to support bound multiple clients. 2017-06-18 11:00:47 -06:00
Anthony Merlino
83d8a7ed8b wireless/ieee802154: Renames Kconfig option, adds option for unimplemented receiver priority. 2017-06-18 10:53:31 -04:00
Gregory Nutt
afa0ab0819 Remove dangling whitespace form the end of lines 2017-06-17 14:13:25 -06:00
Anthony Merlino
30568ee04f wireless/ieee802154: Merges shard logic for sending data request commands 2017-06-17 14:56:42 -04:00
Anthony Merlino
74bc930551 wireless/ieee802154: Renames mac802154_poll to mac802154_radiopoll to be more obvious 2017-06-17 14:50:25 -04:00
Gregory Nutt
19b0aa3145 ieee802154 MAC: Fix a warning when compiled for a target with 64-bit addressing 2017-06-17 09:04:09 -06:00
Gregory Nutt
a728fc0444 ieee802.15.4 loopback: Better simulation addressing: sort, extended, panid, and IP address conversion 2017-06-17 08:54:50 -06:00
Anthony Merlino
ca30b6c02a wireless/ieee802154: Fixes issue with wrong information being sent in a rejected association response frame 2017-06-15 13:01:28 -04:00
Gregory Nutt
77757410c8 Remove dangling white space at the end of lines. 2017-06-15 10:46:48 -06:00
Anthony Merlino
e30501ebd4 wireless/ieee802154: Lots of fixes, cleanup, new functionality. Functional 2017-06-15 12:11:52 -04:00
Anthony Merlino
908d438047 WIP: wireless/ieee802154: More work on association/beacon-enabled networks 2017-06-14 02:49:32 -04:00
Anthony Merlino
06634afbe0 wireless/ieee802154: Restructuring of MAC notifications. Simplifes some interfaces 2017-05-15 21:44:57 -04:00
Anthony Merlino
8ec0b71a59 wireless/ieee802154: Updates configuration settings 2017-05-14 17:59:19 -04:00
Anthony Merlino
2b5e415fab wireless/ieee802154: Starts implementing START.request primitive 2017-05-14 17:55:15 -04:00
Anthony Merlino
07c47b0dde wireless/ieee802154: Starts implementing START.request primitive 2017-05-09 17:22:30 -04:00
Anthony Merlino
806dcd9a47 wireless/ieee802154: Brings closer to Nuttx coding style 2017-05-09 17:20:57 -04:00
Anthony Merlino
1186cd4e56 wireless/ieee802154: Fixes missing handle of read/write being able to be interrupted 2017-05-09 17:20:57 -04:00
Gregory Nutt
2043e1a114 IOBs: Move from driver/iob to a better location in mm/iob 2017-05-09 07:35:30 -06:00
Anthony Merlino
bbb85332fd wireless/ieee802154: Finishes MAC char driver read functionality 2017-05-08 16:23:13 -04:00
Anthony Merlino
2da6f71e84 wireless/ieee802154: Finishes MAC processing of received data frame 2017-05-08 16:23:13 -04:00
Anthony Merlino
2ea6bb4dc1 wireless/ieee802154: Moves ind allocator from mac802154.h to ieee802154_mac.h 2017-05-08 16:23:13 -04:00
Gregory Nutt
b0b0c7ac49 IEEE 802.15.4 network driver. Remove support for multicast address filtering; doesn't work that way on an IEEE 802.15.4 network 2017-05-08 08:34:21 -06:00
Gregory Nutt
d785893a65 Update some comments. 2017-05-07 16:58:49 -06:00
Gregory Nutt
47793aa8f8 Update ieee802.15.4 network driver so that it compiles cleanly. 2017-05-07 08:47:48 -06:00
Anthony Merlino
a19a44ad3d wireless/ieee802154: Completes Rx data flow through MAC layer to callback 2017-05-06 10:20:19 -04:00
Anthony Merlino
1490599b69 wireless/ieee802154: Reworks data_ind allocation to include IOB allocation/deallocation. Hides private data. 2017-05-06 10:20:19 -04:00
Anthony Merlino
88fb514b42 Merged in merlin17/nuttx/ieee802154 (pull request #351)
wireless/ieee802154: Removes msdu_length from meta-data since it is intrinsically in the IOB

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-06 11:53:15 +00:00
Gregory Nutt
a1a68216a9 Trivial changes to spacing 2017-05-05 14:43:44 -06:00
Gregory Nutt
3fcdc28a59 ieee 802.15.4: Add a pool-based memory allocator for RX frame meta-data. 2017-05-05 12:50:34 -06:00
Gregory Nutt
0eb7ec046e 6loWPAN: Use information in struct ieee802154_data_ind_s when reassembling a packet 2017-05-05 11:36:16 -06:00
Anthony Merlino
b87fac776f wireless/ieee802154: Removes msdu_length from meta-data since it is intrinsically in the IOB 2017-05-05 12:44:34 -04:00
Gregory Nutt
95bacb6a34 6loWPAN: Some fixed to get a clean compile after last big changes to the radio IOCTLs. 2017-05-05 10:00:18 -06:00
Anthony Merlino
dd40014279 wireless/ieee802154: Removes radio IOCTL. Starts bringing radio and MAC closer with well-defined interface. 2017-05-05 11:15:38 -04:00
Anthony Merlino
abc15c8429 wireless/ieee802154: Finishes promiscuous mode IOCTL 2017-05-05 11:15:38 -04:00
Anthony Merlino
8435e93fe8 Merged in merlin17/nuttx/ieee802154 (pull request #344)
wireless/ieee802154:  Simplifies some primitive prototypes

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-04 19:29:48 +00:00
Gregory Nutt
1cf891bbe1 Another baby step in removing MAC knowledge from 6loWPAN. 2017-05-04 11:33:22 -06:00
Gregory Nutt
969c1ab614 6loWPAN: Replace some Rime address naming with more consistent short/exended address terminology 2017-05-04 08:20:59 -06:00
Anthony Merlino
ba32b65813 wireless/ieee802154: Simplifies some primitive prototypes 2017-05-03 13:26:15 -04:00
Gregory Nutt
2b8d60970b Merge branch 'ieee802154' of bitbucket.org:nuttx/nuttx into ieee802154 2017-05-03 11:14:59 -06:00
Gregory Nutt
cf988309aa 6loWPAN: Fixes hang in loopback test. 2017-05-03 11:13:07 -06:00
Anthony Merlino
2c2cddd44b wireless/ieee802154: Starts work on setting PIB attributes 2017-05-03 11:42:52 -04:00
Anthony Merlino
352d8260f2 Merged in merlin17/nuttx/ieee802154 (pull request #342)
Ieee802154

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-03 15:41:50 +00:00
Gregory Nutt
858685e977 6loWPAN: Changes to use new MAC interfaces. Incomplete and needs some clean-up of dangling, unused definitions. 2017-05-03 09:40:42 -06:00
Anthony Merlino
653a0217f2 wireless/ieee802154: Finishes some IOCTL logic for MAC layer 2017-05-03 10:52:25 -04:00
Anthony Merlino
893c42561f wireless/ieee802154: Sets up default PIB attributes 2017-05-03 10:45:37 -04:00
Gregory Nutt
1ac1b6e68f MAC: meta data must be const to assure that it is not modified. 2017-05-03 08:04:20 -06:00
Gregory Nutt
4ec14bb2e4 6loWPAN: Add basic call path to interface with the MAC layer through the MAC network driver. Logic has not yet been implemented. This is just a structural change in preparation for additional changes. 2017-05-02 16:03:26 -06:00
Gregory Nutt
2ece0c57dd Remove dangling whitespace at the end of lines 2017-05-02 14:42:40 -06:00
Anthony Merlino
f02d98d15e wireless/ieee802154: Changes transmit data path to use IOBs and exposes function for getting size of MAC header 2017-05-02 09:58:54 -04:00
Anthony Merlino
c4007a111c wireless/ieee802154: Fixes semaphore logic and list logic 2017-05-01 09:27:44 -04:00
Anthony Merlino
b1ff257215 wireless/ieee802154: Minor fixes to account for moved IOCTL definitions 2017-05-01 09:27:44 -04:00
Gregory Nutt
3482172a16 Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-29 10:06:35 -06:00
Gregory Nutt
8262c05713 sixlowpan: Can't reuse same header on each fragment. DSN needs to increment. 2017-04-29 08:23:59 -06:00
Anthony Merlino
9e760dcf6a wireless/ieee802154: Lots of little fixes and changes to get everything to build 2017-04-26 11:36:06 -04:00
Gregory Nutt
0ea071f7eb Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-22 11:58:07 -06:00
Gregory Nutt
7da031aea1 6loWPAN: Add IEEE802.15.4 Rime address to union of link layer addresses in the network driver. 2017-04-22 11:52:45 -06:00
Gregory Nutt
309f0abc14 Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-21 16:34:10 -06:00
Gregory Nutt
d5207efb5a Be consistent... Use Name: consistent in function headers vs Function: 2017-04-21 16:33:14 -06:00
Gregory Nutt
5d68eb6059 6loWPAN: Remove the PAN ID from the 6loWPAN data structure. This is owned by the radio driver. Rather, use an IOCTL to obtain the PAN ID from the downstream radio driver. 2017-04-21 16:23:40 -06:00
Gregory Nutt
b2292cd2cb Some trivial spacing changes from review of last PR; Remove some dangling whitespace at the end of lines. 2017-04-21 13:21:43 -06:00
Anthony Merlino
b1c8f008d6 wireless/ieee802154: Simplifies TX completion interface. Documents and cleans up some functions 2017-04-21 14:57:27 -04:00
Anthony Merlino
1abe4ae4da wireless/ieee802154: Starts structuring transmission completion handling 2017-04-19 16:35:02 -04:00
Gregory Nutt
ec5b0a0ef3 Minor changes to spacing only from review of last PR 2017-04-19 13:40:52 -06:00
Anthony Merlino
3b5f350656 wireless/ieee802154: Removes uneccessary structs surrounding bit-fields in mac802154.c 2017-04-19 14:47:35 -04:00
Anthony Merlino
37e7c67373 wireless/ieee802154: Changes radio interface to match MAC callback design 2017-04-19 13:26:44 -04:00
Anthony Merlino
3950541136 wireless/ieee802154: Renames mac802154_devwrapper_s to mac802154_chardevice_s 2017-04-19 13:26:44 -04:00
Gregory Nutt
dbafc0fc49 ieee802154: Purely cosmetic changes from review of last PR. 2017-04-19 09:53:32 -06:00
Anthony Merlino
de4e2d84c4 wireless/ieee802154: Simplifies MAC callback interface. Adds missing data type definitions 2017-04-19 11:30:43 -04:00
Gregory Nutt
35756d6295 ieee802.15.4: Cosmetic changes from review of last PR. 2017-04-18 14:25:23 -06:00
Anthony Merlino
9ad3b375e5 wireless/ieee802154: Lots of small fixes to eliminate build issues.
Generally cleans things up and fixes lots of small issues preventing a successful build.  Does not completely build, but there are significantly less errors
2017-04-18 15:34:28 -04:00
Gregory Nutt
1d1d633e6f ieee802.15.4: Fix some forbidden C11 syntax. 2017-04-17 11:47:33 -06:00
Gregory Nutt
6d3ec6e4a4 ieee802.15.4: Changes from review of last PR 2017-04-17 09:53:58 -06:00
Anthony Merlino
46d7a4bb03 wireless/ieee802154: Continues development on transmit structure 2017-04-17 11:34:41 -04:00
Gregory Nutt
bbeadc2274 6loWPAN network driver: Still only a skeleton but has some added though experimentation. 2017-04-16 07:50:11 -06:00
Gregory Nutt
8786770d7d Costmetic change from review of last PR 2017-04-15 15:59:00 -06:00
Anthony Merlino
2bc758c3eb wireless/ieee802154: Bind MAC phyif to radio 2017-04-15 13:44:15 -04:00
Anthony Merlino
16edc77965 wireless/ieee802154: Skeleton code for request associate 2017-04-15 13:26:03 -04:00
Anthony Merlino
36a6bda755 wireless/ieee802154: Starts adding MAC request data functionality 2017-04-15 13:22:36 -04:00
Anthony Merlino
5c32abb442 wireless/ieee802154: Adds ability to receive notifications from MAC char driver 2017-04-15 12:00:43 -04:00
Gregory Nutt
30db2835a1 Trivial fix to spacing 2017-04-15 09:36:11 -06:00
Gregory Nutt
a8706d8afa wireless/ieee802154: Correct a few more compile issues. 2017-04-14 13:58:25 -06:00
Gregory Nutt
92c83489ba radio802154_device.c now accesses the PHY layer via the IOCTL helper functions. 2017-04-14 13:04:24 -06:00
Gregory Nutt
0c4ff5e60b wireless/ieee802154: Add radio IOCTL helpers 2017-04-14 12:59:49 -06:00
Gregory Nutt
beee02843a wireless/ieee802154: Fix some easy compilation problems introduced with header file changes. 2017-04-14 12:05:28 -06:00