@@ -156,7 +156,7 @@ static enum at_cme bt_hfp_ag_get_cme_err(int err)
156
156
enum at_cme cme_err ;
157
157
158
158
switch (err ) {
159
- case - EOPNOTSUPP :
159
+ case - ENOEXEC :
160
160
cme_err = CME_ERROR_OPERATION_NOT_SUPPORTED ;
161
161
break ;
162
162
case - EFAULT :
@@ -961,7 +961,7 @@ static int bt_hfp_ag_bac_handler(struct bt_hfp_ag *ag, struct net_buf *buf)
961
961
if (!(ag -> hf_features & BT_HFP_HF_FEATURE_CODEC_NEG ) ||
962
962
!(ag -> ag_features & BT_HFP_AG_FEATURE_CODEC_NEG )) {
963
963
hfp_ag_unlock (ag );
964
- return - EOPNOTSUPP ;
964
+ return - ENOEXEC ;
965
965
}
966
966
hfp_ag_unlock (ag );
967
967
@@ -983,7 +983,7 @@ static int bt_hfp_ag_bac_handler(struct bt_hfp_ag *ag, struct net_buf *buf)
983
983
}
984
984
985
985
if (!(codec_ids & BIT (BT_HFP_AG_CODEC_CVSD ))) {
986
- return - EOPNOTSUPP ;
986
+ return - ENOEXEC ;
987
987
}
988
988
989
989
hfp_ag_lock (ag );
@@ -1380,7 +1380,7 @@ static int chld_drop_conversation(struct bt_hfp_ag *ag)
1380
1380
}
1381
1381
1382
1382
if (!bt_ag || !bt_ag -> explicit_call_transfer ) {
1383
- return - EOPNOTSUPP ;
1383
+ return - ENOEXEC ;
1384
1384
}
1385
1385
1386
1386
bt_ag -> explicit_call_transfer (ag );
@@ -1495,13 +1495,13 @@ static int chld_other(struct bt_hfp_ag *ag, uint32_t value)
1495
1495
command = value / 10 ;
1496
1496
1497
1497
if (!index ) {
1498
- return - EOPNOTSUPP ;
1498
+ return - ENOEXEC ;
1499
1499
}
1500
1500
1501
1501
index = index - 1 ;
1502
1502
1503
1503
if (index >= ARRAY_SIZE (ag -> calls )) {
1504
- return - EOPNOTSUPP ;
1504
+ return - ENOEXEC ;
1505
1505
}
1506
1506
1507
1507
switch (command ) {
@@ -1511,7 +1511,7 @@ static int chld_other(struct bt_hfp_ag *ag, uint32_t value)
1511
1511
return chld_held_other_calls (ag , index );
1512
1512
}
1513
1513
1514
- return - EOPNOTSUPP ;
1514
+ return - ENOEXEC ;
1515
1515
}
1516
1516
#endif /* CONFIG_BT_HFP_AG_3WAY_CALL */
1517
1517
@@ -1526,7 +1526,7 @@ static int bt_hfp_ag_chld_handler(struct bt_hfp_ag *ag, struct net_buf *buf)
1526
1526
if (!((ag -> ag_features & BT_HFP_AG_FEATURE_3WAY_CALL ) &&
1527
1527
(ag -> hf_features & BT_HFP_HF_FEATURE_3WAY_CALL ))) {
1528
1528
hfp_ag_unlock (ag );
1529
- return - EOPNOTSUPP ;
1529
+ return - ENOEXEC ;
1530
1530
}
1531
1531
hfp_ag_unlock (ag );
1532
1532
@@ -1568,7 +1568,7 @@ static int bt_hfp_ag_chld_handler(struct bt_hfp_ag *ag, struct net_buf *buf)
1568
1568
1569
1569
return chld_other (ag , value );
1570
1570
#else
1571
- return - EOPNOTSUPP ;
1571
+ return - ENOEXEC ;
1572
1572
#endif /* CONFIG_BT_HFP_AG_3WAY_CALL */
1573
1573
}
1574
1574
@@ -1585,7 +1585,7 @@ static int bt_hfp_ag_bind_handler(struct bt_hfp_ag *ag, struct net_buf *buf)
1585
1585
if (!((ag -> ag_features & BT_HFP_AG_FEATURE_HF_IND ) &&
1586
1586
(ag -> hf_features & BT_HFP_HF_FEATURE_HF_IND ))) {
1587
1587
hfp_ag_unlock (ag );
1588
- return - EOPNOTSUPP ;
1588
+ return - ENOEXEC ;
1589
1589
}
1590
1590
hfp_ag_unlock (ag );
1591
1591
@@ -2550,7 +2550,7 @@ static int bt_hfp_ag_outgoing_call(struct bt_hfp_ag *ag, const char *number, uin
2550
2550
#if defined(CONFIG_BT_HFP_AG_3WAY_CALL )
2551
2551
if (!((ag -> ag_features & BT_HFP_AG_FEATURE_3WAY_CALL ) &&
2552
2552
(ag -> hf_features & BT_HFP_HF_FEATURE_3WAY_CALL ))) {
2553
- return - EOPNOTSUPP ;
2553
+ return - ENOEXEC ;
2554
2554
}
2555
2555
2556
2556
if (!get_active_held_calls (ag )) {
@@ -2908,7 +2908,7 @@ static int bt_hfp_ag_ccwa_handler(struct bt_hfp_ag *ag, struct net_buf *buf)
2908
2908
if (!((ag -> ag_features & BT_HFP_AG_FEATURE_3WAY_CALL ) &&
2909
2909
(ag -> hf_features & BT_HFP_HF_FEATURE_3WAY_CALL ))) {
2910
2910
hfp_ag_unlock (ag );
2911
- return - EOPNOTSUPP ;
2911
+ return - ENOEXEC ;
2912
2912
}
2913
2913
hfp_ag_unlock (ag );
2914
2914
@@ -2990,7 +2990,7 @@ static int bt_hfp_ag_bvra_handler(struct bt_hfp_ag *ag, struct net_buf *buf)
2990
2990
if (!((ag -> ag_features & BT_HFP_AG_FEATURE_VOICE_RECG ) &&
2991
2991
(ag -> hf_features & BT_HFP_HF_FEATURE_VOICE_RECG ))) {
2992
2992
hfp_ag_unlock (ag );
2993
- return - EOPNOTSUPP ;
2993
+ return - ENOEXEC ;
2994
2994
}
2995
2995
hfp_ag_unlock (ag );
2996
2996
@@ -3029,7 +3029,7 @@ static int bt_hfp_ag_bvra_handler(struct bt_hfp_ag *ag, struct net_buf *buf)
3029
3029
(ag -> hf_features & BT_HFP_HF_FEATURE_ENH_VOICE_RECG ))) {
3030
3030
hfp_ag_unlock (ag );
3031
3031
LOG_WRN ("Enhance voice recognition is not supported" );
3032
- return - EOPNOTSUPP ;
3032
+ return - ENOEXEC ;
3033
3033
}
3034
3034
hfp_ag_unlock (ag );
3035
3035
if (!atomic_test_bit (ag -> flags , BT_HFP_AG_VRE_ACTIVATE )) {
@@ -3056,7 +3056,7 @@ static int bt_hfp_ag_binp_handler(struct bt_hfp_ag *ag, struct net_buf *buf)
3056
3056
hfp_ag_lock (ag );
3057
3057
if (!(ag -> ag_features & BT_HFP_AG_FEATURE_VOICE_TAG )) {
3058
3058
hfp_ag_unlock (ag );
3059
- return - EOPNOTSUPP ;
3059
+ return - ENOEXEC ;
3060
3060
}
3061
3061
hfp_ag_unlock (ag );
3062
3062
@@ -3284,7 +3284,7 @@ static void hfp_ag_recv(struct bt_rfcomm_dlc *dlc, struct net_buf *buf)
3284
3284
uint8_t * data = buf -> data ;
3285
3285
uint16_t len = buf -> len ;
3286
3286
enum at_cme cme_err ;
3287
- int err = - EOPNOTSUPP ;
3287
+ int err = - ENOEXEC ;
3288
3288
3289
3289
LOG_HEXDUMP_DBG (data , len , "Received:" );
3290
3290
@@ -3868,7 +3868,7 @@ int bt_hfp_ag_remote_incoming(struct bt_hfp_ag *ag, const char *number)
3868
3868
if (!((ag -> ag_features & BT_HFP_AG_FEATURE_3WAY_CALL ) &&
3869
3869
(ag -> hf_features & BT_HFP_HF_FEATURE_3WAY_CALL ))) {
3870
3870
LOG_WRN ("3 Way call feature is not supported on both sides" );
3871
- return - EOPNOTSUPP ;
3871
+ return - ENOEXEC ;
3872
3872
}
3873
3873
3874
3874
if (!atomic_test_bit (ag -> flags , BT_HFP_AG_CCWA_ENABLE )) {
0 commit comments