Please be warned that performing a factory reset on Samsung Legend WILL result in your MIN getting deleted from the handset in addition to loss of NV items.
Resultantly, after reset, neither will you be able to make/receive calls/sms nether will data work.
So, before doing a factory reset, make sure you have your NAM saved and have your SPC and NV Dump at hand for reflashing.
I learnt it the hard way recently so thought to share.