Skip to content

Commit 9d2386d

Browse files
author
Juha Heiskanen
committed
Renamed operation mode to operating mode.
1 parent 2f755bc commit 9d2386d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

nanostack/ws_management_api.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,13 @@ typedef struct ws_neighbour_info {
227227

228228

229229
/**
230-
* @brief ws_management_pcap_t Wi-SUN FAN 1.1 Phy Capability type and opeartion mode
230+
* @brief ws_management_pcap_t Wi-SUN FAN 1.1 Phy Capability type and operating mode
231231
*/
232232
typedef struct ws_management_pcap {
233233
/** Phy type */
234234
uint8_t phy_type;
235-
/** Phy operation mode */
236-
uint16_t operation_mode;
235+
/** Phy operating mode */
236+
uint16_t operating_mode;
237237
} ws_management_pcap_t;
238238

239239
/**

source/6LoWPAN/ws/ws_common_defines.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ typedef struct ws_panid_ie {
245245
*/
246246
typedef struct ws_pcap_ie {
247247
unsigned phy_type: 3;
248-
uint16_t operation_mode;
248+
uint16_t operating_mode;
249249
} ws_pcap_ie_t;
250250

251251
typedef struct ws_phy_cap_info {

source/6LoWPAN/ws/ws_ie_lib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ uint8_t *ws_wp_nested_pcap_write(uint8_t *ptr, struct ws_phy_cap_info *pcap_list
561561
*ptr++ = pcap_list->length_of_list;
562562
for (int i = 0; i < pcap_list->length_of_list; i++) {
563563
*ptr++ = pcap_list->pcap[i].phy_type;
564-
ptr = common_write_16_bit_inverse(pcap_list->pcap[i].operation_mode, ptr);
564+
ptr = common_write_16_bit_inverse(pcap_list->pcap[i].operating_mode, ptr);
565565
}
566566
return ptr;
567567
}
@@ -1175,7 +1175,7 @@ bool ws_wp_nested_pcap_read(uint8_t *data, uint16_t length, struct ws_phy_cap_in
11751175

11761176
for (uint8_t i = 0; i < length_of_cap; i++) {
11771177
ws_pcap_list->pcap[i].phy_type = *data++ & 7;
1178-
ws_pcap_list->pcap[i].operation_mode = common_read_16_bit_inverse(data);
1178+
ws_pcap_list->pcap[i].operating_mode = common_read_16_bit_inverse(data);
11791179
data += 2;
11801180
}
11811181

source/6LoWPAN/ws/ws_management_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ int ws_management_phy_capability_set(
973973
cur->ws_info->phy_cap_info.length_of_list = pcap_list->length_of_list;
974974
for (int i = 0; i < pcap_list->length_of_list; i++) {
975975
cur->ws_info->phy_cap_info.pcap[i].phy_type = pcap_list->pcap[i].phy_type;
976-
cur->ws_info->phy_cap_info.pcap[i].operation_mode = pcap_list->pcap[i].operation_mode;
976+
cur->ws_info->phy_cap_info.pcap[i].operating_mode = pcap_list->pcap[i].operating_mode;
977977
}
978978

979979
return 0;

0 commit comments

Comments
 (0)