[RFC PATCH v3] gprs: add function to handle activated context