Lines Matching refs:mhr
141 local->scan_beacon_req.mhr.fc.type = IEEE802154_FC_TYPE_MAC_CMD; in mac802154_scan_prepare_beacon_req()
142 local->scan_beacon_req.mhr.fc.dest_addr_mode = IEEE802154_SHORT_ADDRESSING; in mac802154_scan_prepare_beacon_req()
143 local->scan_beacon_req.mhr.fc.version = IEEE802154_2003_STD; in mac802154_scan_prepare_beacon_req()
144 local->scan_beacon_req.mhr.fc.source_addr_mode = IEEE802154_NO_ADDRESSING; in mac802154_scan_prepare_beacon_req()
145 local->scan_beacon_req.mhr.dest.mode = IEEE802154_ADDR_SHORT; in mac802154_scan_prepare_beacon_req()
146 local->scan_beacon_req.mhr.dest.pan_id = cpu_to_le16(IEEE802154_PANID_BROADCAST); in mac802154_scan_prepare_beacon_req()
147 local->scan_beacon_req.mhr.dest.short_addr = cpu_to_le16(IEEE802154_ADDR_BROADCAST); in mac802154_scan_prepare_beacon_req()
355 local->beacon.mhr.seq = atomic_inc_return(&wpan_dev->bsn) & 0xFF; in mac802154_transmit_beacon()
484 local->beacon.mhr.fc.type = IEEE802154_FC_TYPE_BEACON; in mac802154_send_beacons_locked()
485 local->beacon.mhr.fc.security_enabled = 0; in mac802154_send_beacons_locked()
486 local->beacon.mhr.fc.frame_pending = 0; in mac802154_send_beacons_locked()
487 local->beacon.mhr.fc.ack_request = 0; in mac802154_send_beacons_locked()
488 local->beacon.mhr.fc.intra_pan = 0; in mac802154_send_beacons_locked()
489 local->beacon.mhr.fc.dest_addr_mode = IEEE802154_NO_ADDRESSING; in mac802154_send_beacons_locked()
490 local->beacon.mhr.fc.version = IEEE802154_2003_STD; in mac802154_send_beacons_locked()
491 local->beacon.mhr.fc.source_addr_mode = IEEE802154_EXTENDED_ADDRESSING; in mac802154_send_beacons_locked()
493 local->beacon.mhr.source.mode = IEEE802154_ADDR_LONG; in mac802154_send_beacons_locked()
494 local->beacon.mhr.source.pan_id = request->wpan_dev->pan_id; in mac802154_send_beacons_locked()
495 local->beacon.mhr.source.extended_addr = request->wpan_dev->extended_addr; in mac802154_send_beacons_locked()
527 frame.mhr.fc.type = IEEE802154_FC_TYPE_MAC_CMD; in mac802154_perform_association()
528 frame.mhr.fc.security_enabled = 0; in mac802154_perform_association()
529 frame.mhr.fc.frame_pending = 0; in mac802154_perform_association()
530 frame.mhr.fc.ack_request = 1; /* We always expect an ack here */ in mac802154_perform_association()
531 frame.mhr.fc.intra_pan = 0; in mac802154_perform_association()
532 frame.mhr.fc.dest_addr_mode = (coord->mode == IEEE802154_ADDR_LONG) ? in mac802154_perform_association()
534 frame.mhr.fc.version = IEEE802154_2003_STD; in mac802154_perform_association()
535 frame.mhr.fc.source_addr_mode = IEEE802154_EXTENDED_ADDRESSING; in mac802154_perform_association()
536 frame.mhr.source.mode = IEEE802154_ADDR_LONG; in mac802154_perform_association()
537 frame.mhr.source.pan_id = cpu_to_le16(IEEE802154_PANID_BROADCAST); in mac802154_perform_association()
538 frame.mhr.source.extended_addr = wpan_dev->extended_addr; in mac802154_perform_association()
539 frame.mhr.dest.mode = coord->mode; in mac802154_perform_association()
540 frame.mhr.dest.pan_id = coord->pan_id; in mac802154_perform_association()
542 frame.mhr.dest.extended_addr = coord->extended_addr; in mac802154_perform_association()
544 frame.mhr.dest.short_addr = coord->short_addr; in mac802154_perform_association()
545 frame.mhr.seq = atomic_inc_return(&wpan_dev->dsn) & 0xFF; in mac802154_perform_association()
654 frame.mhr.fc.type = IEEE802154_FC_TYPE_MAC_CMD; in mac802154_send_disassociation_notif()
655 frame.mhr.fc.security_enabled = 0; in mac802154_send_disassociation_notif()
656 frame.mhr.fc.frame_pending = 0; in mac802154_send_disassociation_notif()
657 frame.mhr.fc.ack_request = 1; in mac802154_send_disassociation_notif()
658 frame.mhr.fc.intra_pan = 1; in mac802154_send_disassociation_notif()
659 frame.mhr.fc.dest_addr_mode = (target->mode == IEEE802154_ADDR_LONG) ? in mac802154_send_disassociation_notif()
661 frame.mhr.fc.version = IEEE802154_2003_STD; in mac802154_send_disassociation_notif()
662 frame.mhr.fc.source_addr_mode = IEEE802154_EXTENDED_ADDRESSING; in mac802154_send_disassociation_notif()
663 frame.mhr.source.mode = IEEE802154_ADDR_LONG; in mac802154_send_disassociation_notif()
664 frame.mhr.source.pan_id = wpan_dev->pan_id; in mac802154_send_disassociation_notif()
665 frame.mhr.source.extended_addr = wpan_dev->extended_addr; in mac802154_send_disassociation_notif()
666 frame.mhr.dest.mode = target->mode; in mac802154_send_disassociation_notif()
667 frame.mhr.dest.pan_id = wpan_dev->pan_id; in mac802154_send_disassociation_notif()
669 frame.mhr.dest.extended_addr = target->extended_addr; in mac802154_send_disassociation_notif()
671 frame.mhr.dest.short_addr = target->short_addr; in mac802154_send_disassociation_notif()
672 frame.mhr.seq = atomic_inc_return(&wpan_dev->dsn) & 0xFF; in mac802154_send_disassociation_notif()
715 frame.mhr.fc.type = IEEE802154_FC_TYPE_MAC_CMD; in mac802154_send_association_resp_locked()
716 frame.mhr.fc.security_enabled = 0; in mac802154_send_association_resp_locked()
717 frame.mhr.fc.frame_pending = 0; in mac802154_send_association_resp_locked()
718 frame.mhr.fc.ack_request = 1; /* We always expect an ack here */ in mac802154_send_association_resp_locked()
719 frame.mhr.fc.intra_pan = 1; in mac802154_send_association_resp_locked()
720 frame.mhr.fc.dest_addr_mode = IEEE802154_EXTENDED_ADDRESSING; in mac802154_send_association_resp_locked()
721 frame.mhr.fc.version = IEEE802154_2003_STD; in mac802154_send_association_resp_locked()
722 frame.mhr.fc.source_addr_mode = IEEE802154_EXTENDED_ADDRESSING; in mac802154_send_association_resp_locked()
723 frame.mhr.source.mode = IEEE802154_ADDR_LONG; in mac802154_send_association_resp_locked()
724 frame.mhr.source.extended_addr = wpan_dev->extended_addr; in mac802154_send_association_resp_locked()
725 frame.mhr.dest.mode = IEEE802154_ADDR_LONG; in mac802154_send_association_resp_locked()
726 frame.mhr.dest.pan_id = wpan_dev->pan_id; in mac802154_send_association_resp_locked()
727 frame.mhr.dest.extended_addr = target->extended_addr; in mac802154_send_association_resp_locked()
728 frame.mhr.seq = atomic_inc_return(&wpan_dev->dsn) & 0xFF; in mac802154_send_association_resp_locked()