mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 05:10:40 +00:00
PPP: remove LWIP_ASSERT_CORE_LOCKED on ppp_set_auth function
We do not have equivalents in PPPAPI for ppp_set_* functions because calling them only makes sense while session is disconnected, furthermore they are only setting structure members of the session configuration.
This commit is contained in:
parent
051fbea5e6
commit
7e92fb3d7f
@ -216,7 +216,6 @@ static err_t ppp_netif_output(struct netif *netif, struct pbuf *pb, u16_t protoc
|
|||||||
/***********************************/
|
/***********************************/
|
||||||
#if PPP_AUTH_SUPPORT
|
#if PPP_AUTH_SUPPORT
|
||||||
void ppp_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *passwd) {
|
void ppp_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *passwd) {
|
||||||
LWIP_ASSERT_CORE_LOCKED();
|
|
||||||
#if PAP_SUPPORT
|
#if PAP_SUPPORT
|
||||||
pcb->settings.refuse_pap = !(authtype & PPPAUTHTYPE_PAP);
|
pcb->settings.refuse_pap = !(authtype & PPPAUTHTYPE_PAP);
|
||||||
#endif /* PAP_SUPPORT */
|
#endif /* PAP_SUPPORT */
|
||||||
|
Loading…
Reference in New Issue
Block a user