The password in the DB is hashed by Django (the framework on which OpenWISP is based), for more info on this, see
https://docs.djangoproject.com/en/4.2/topics/auth/passwords/.
We have no way to calculate a different hash, that would mean having to store the password in clear text which we do not do, the other way would be to change the hashing algorithm to be the same used by chap/mschap but these algorithms are too weak nowadays.
At least this is the situation if you want to use the users defined in OpenWISP, if you are storing passwords elsewhere you would need to configure freeradius to look for passwords differently.
Federico