| 134 | } |
| 135 | |
| 136 | void DataSet::setNetworkName(const char *name) { |
| 137 | if (!name) { |
| 138 | log_w("Network name is null"); |
| 139 | return; |
| 140 | } |
| 141 | // char m8[OT_NETWORK_KEY_SIZE + 1] bytes space by definition |
| 142 | strncpy(mDataset.mNetworkName.m8, name, OT_NETWORK_KEY_SIZE); |
| 143 | mDataset.mComponents.mIsNetworkNamePresent = true; |
| 144 | } |
| 145 | |
| 146 | void DataSet::setExtendedPanId(const uint8_t *extPanId) { |
| 147 | if (!extPanId) { |