Can I modify Scan request packet at application layer?
SCAN_REQUEST is totally handled by central as the SCAN_REQ PDU has only two fields. copy paste from the spec
"The Payload field consists of ScanA and AdvA fields. The ScanA field shall
contain the scanner’s public or random device address as indicated by TxAdd.
The AdvA field is the address of the device to which this PDU is addressed.
The AdvA field shall contain the advertiser’s public or random device address
as indicated by RxAdd.
Note: This packet does not contain any Host Data." you can change ScanA field by changing device address of central but nothing more. What are you trying to achieve by wanting to modify scan request PDU?
SCAN_REQUEST is totally handled by central as the SCAN_REQ PDU has only two fields. copy paste from the spec
"The Payload field consists of ScanA and AdvA fields. The ScanA field shall
contain the scanner’s public or random device address as indicated by TxAdd.
The AdvA field is the address of the device to which this PDU is addressed.
The AdvA field shall contain the advertiser’s public or random device address
as indicated by RxAdd.
Note: This packet does not contain any Host Data." you can change ScanA field by changing device address of central but nothing more. What are you trying to achieve by wanting to modify scan request PDU?