Automatically Accepting Specific P2P Connection Requests on RT1176 (MAYA-W4 Module)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Automatically Accepting Specific P2P Connection Requests on RT1176 (MAYA-W4 Module)

Jump to solution
1,193 Views
Tarak_777
Contributor III

Hi,

I’m working on a Wi-Fi Direct implementation on the i.MX RT1176 board using the MAYA-W4 Wi-Fi module. I am using wpa_supplicant example from SDK V25.09,I was able to successfully establish and disconnect P2P connections.

In my application, the first connection requires a PIN entry from the user. Once the connection is established, I store the peer’s MAC address in flash memory. For subsequent connections, I want the device to automatically accept incoming requests from the same peer (without requiring user intervention).

I tried using the command wlan-p2p-start-wps-pbc, but it appears to accept connection attempts from all nearby devices, not just the previously stored one.

Is there a way to automatically accept connection requests only from a specific peer MAC address? Any guidance or suggestions would be appreciated.

Thanks,
Tarak.

Tags (1)
0 Kudos
Reply
1 Solution
1,169 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

 

Have you tried hard coding the values using wpa_supp_p2p_connect() and call it from main()?

 

Regards,
Daniel.

View solution in original post

0 Kudos
Reply
2 Replies
1,170 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

 

Have you tried hard coding the values using wpa_supp_p2p_connect() and call it from main()?

 

Regards,
Daniel.

0 Kudos
Reply
1,143 Views
Tarak_777
Contributor III

Hi @DanielRuvalcaba ,

Thanks for the reply. I have tried by hard coding the values and i was able to connect successfully. Thanks for the support.

Best regards,

Tarak.

Tags (1)
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2197588%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EAutomatically%20Accepting%20Specific%20P2P%20Connection%20Requests%20on%20RT1176%20(MAYA-W4%20Module)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2197588%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%E2%80%99m%20working%20on%20a%20Wi-Fi%20Direct%20implementation%20on%20the%20i.MX%20RT1176%20board%20using%20the%20MAYA-W4%20Wi-Fi%20module.%20I%20am%20using%20%3CSTRONG%3Ewpa_supplicant%3C%2FSTRONG%3E%20example%20from%20%3CSTRONG%3ESDK%20V25.09%3C%2FSTRONG%3E%2CI%20was%20able%20to%20successfully%20establish%20and%20disconnect%20P2P%20connections.%3C%2FP%3E%3CP%3EIn%20my%20application%2C%20the%20first%20connection%20requires%20a%20PIN%20entry%20from%20the%20user.%20Once%20the%20connection%20is%20established%2C%20I%20store%20the%20peer%E2%80%99s%20MAC%20address%20in%20flash%20memory.%20For%20subsequent%20connections%2C%20I%20want%20the%20device%20to%20automatically%20accept%20incoming%20requests%20from%20the%20same%20peer%20(without%20requiring%20user%20intervention).%3C%2FP%3E%3CP%3EI%20tried%20using%20the%20command%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Ewlan-p2p-start-wps-pbc%3C%2FSTRONG%3E%2C%20but%20it%20appears%20to%20accept%20connection%20attempts%20from%20all%20nearby%20devices%2C%20not%20just%20the%20previously%20stored%20one.%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20automatically%20accept%20connection%20requests%20only%20from%20a%20specific%20peer%20MAC%20address%3F%20Any%20guidance%20or%20suggestions%20would%20be%20appreciated.%3C%2FP%3E%3CP%3EThanks%2C%3CBR%20%2F%3ETarak.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2199075%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Automatically%20Accepting%20Specific%20P2P%20Connection%20Requests%20on%20RT1176%20(MAYA-W4%20Module)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2199075%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F198556%22%20target%3D%22_blank%22%3E%40DanielRuvalcaba%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EThanks%20for%20the%20reply.%20I%20have%20tried%20by%20hard%20coding%20the%20values%20and%20i%20was%20able%20to%20connect%20successfully.%20Thanks%20for%20the%20support.%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3ETarak.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2197702%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Automatically%20Accepting%20Specific%20P2P%20Connection%20Requests%20on%20RT1176%20(MAYA-W4%20Module)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2197702%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHave%20you%20tried%20hard%20coding%20the%20values%20using%26nbsp%3B%3CSPAN%3Ewpa_supp_p2p_connect()%20and%20call%20it%20from%20main()%3F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3ERegards%2C%3CBR%20%2F%3EDaniel.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E