Disable block protect at startup

Hi, 

Inside the following function, it is commented that /* make sure to disable block protection at startup, otherwise we cannot write to flash */. How can I do it?

static int w25q32bv_open(struct flash_info *fi)
{
fi->size = 0x400000;
fi->number_of_regions = 1;
fi->erase_block_regions = malloc(fi->number_of_regions * sizeof (struct erase_block_region));

if (fi->erase_block_regions == NULL)
return -1;

fi->erase_block_regions[0].block_size = BLOCK_SIZE;
fi->erase_block_regions[0].number_of_blocks = NUM_SECTORS;

/* make sure to disable block protection at startup, otherwise we cannot write to flash */
w25q32bv_write_status(fi, 0, 0);

return 0;
}

Is it correct setting?, because I can't still write into the flash. 

The function is taken from the example code Power_On_Self_Test BF706

Thank you

Best Regards